Skip to content

Commit 5274f16

Browse files
Potential fix for code scanning alert no. 1: Double escaping or unescaping
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
1 parent 6220853 commit 5274f16

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

_static/underscore-1.3.1.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -900,7 +900,7 @@
900900
// Within an interpolation, evaluation, or escaping, remove HTML escaping
901901
// that had been previously added.
902902
var unescape = function(code) {
903-
return code.replace(/\\\\/g, '\\').replace(/\\'/g, "'");
903+
return code.replace(/\\'/g, "'").replace(/\\\\/g, '\\');
904904
};
905905

906906
// JavaScript micro-templating, similar to John Resig's implementation.

0 commit comments

Comments
 (0)