From e192b84762ab6bf42cbadfec1c8aab59493ffa67 Mon Sep 17 00:00:00 2001 From: Tooru Fujisawa Date: Mon, 2 Mar 2015 00:36:52 +0900 Subject: [PATCH] Bug 1138097 - Do not use non-standard flag argument of String.prototype.replace in mailnews/mime/. r=jcranmer --- mailnews/mime/jsmime/jsmime.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mailnews/mime/jsmime/jsmime.js b/mailnews/mime/jsmime/jsmime.js index 40190b078d..59b70bf61f 100644 --- a/mailnews/mime/jsmime/jsmime.js +++ b/mailnews/mime/jsmime/jsmime.js @@ -605,7 +605,7 @@ function decodeRFC2047Words(headerValue) { // 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 // 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 { return false; }