Bug 1138097 - Do not use non-standard flag argument of String.prototype.replace in mailnews/mime/. r=jcranmer
This commit is contained in:
Родитель
afafc3f134
Коммит
e192b84762
|
@ -605,7 +605,7 @@ function decodeRFC2047Words(headerValue) {
|
||||||
// whitespace at the end of the string. Such an input string is already
|
// whitespace at the end of the string. Such an input string is already
|
||||||
// malformed to begin with, so stripping the = and following input in that
|
// malformed to begin with, so stripping the = and following input in that
|
||||||
// case should not be an important loss.
|
// case should not be an important loss.
|
||||||
buffer = mimeutils.decode_qp(text.replace('_', ' ', 'g'), false)[0];
|
buffer = mimeutils.decode_qp(text.replace(/_/g, ' '), false)[0];
|
||||||
} else {
|
} else {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче