Bug 1138097 - Do not use non-standard flag argument of String.prototype.replace in mailnews/mime/. r=jcranmer

This commit is contained in:
Tooru Fujisawa 2015-03-02 00:36:52 +09:00
Родитель afafc3f134
Коммит e192b84762
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -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;
} }