Skip to content

Commit cd6ec9f

Browse files
committed
Merge branch 'MAGETWO-96941' into borg-qwerty-fixes2.1
2 parents 8ff6fe0 + 205a87c commit cd6ec9f

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

lib/web/tiny_mce/classes/util/JSON.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@
9292
*/
9393
parse: function(s) {
9494
try {
95-
return eval('(' + s + ')');
95+
return JSON.parse(s);
9696
} catch (ex) {
9797
// Ignore
9898
}

lib/web/tiny_mce/tiny_mce_jquery_src.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1193,7 +1193,7 @@ tinymce.create('tinymce.util.Dispatcher', {
11931193

11941194
parse: function(s) {
11951195
try {
1196-
return eval('(' + s + ')');
1196+
return JSON.parse(s);
11971197
} catch (ex) {
11981198
// Ignore
11991199
}

lib/web/tiny_mce/tiny_mce_prototype_src.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -945,7 +945,7 @@ tinymce.create('tinymce.util.Dispatcher', {
945945

946946
parse: function(s) {
947947
try {
948-
return eval('(' + s + ')');
948+
return JSON.parse(s);
949949
} catch (ex) {
950950
// Ignore
951951
}

lib/web/tiny_mce/tiny_mce_src.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -918,7 +918,7 @@ tinymce.create('tinymce.util.Dispatcher', {
918918

919919
parse: function(s) {
920920
try {
921-
return eval('(' + s + ')');
921+
return JSON.parse(s);
922922
} catch (ex) {
923923
// Ignore
924924
}

0 commit comments

Comments
 (0)