From d853b607622e77e38e3276928810b4856694cba5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maur=C3=ADcio=20Meneghini=20Fauth?= Date: Wed, 14 Jun 2017 12:31:43 -0300 Subject: [PATCH] Change octal escape with hexadecimal escape MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Octal escape sequences are not allowed in strict mode. Signed-off-by: MaurĂ­cio Meneghini Fauth --- js/functions.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/functions.js b/js/functions.js index 942b450cc0..677fd0404d 100644 --- a/js/functions.js +++ b/js/functions.js @@ -352,7 +352,7 @@ function escapeJsString(unsafe) { if (typeof(unsafe) != 'undefined') { return unsafe .toString() - .replace("\000", '') + .replace("\x00", '') .replace('\\', '\\\\') .replace('\'', '\\\'') .replace("'", "\\\'")