Ticket #6913: 6913_2.patch
File 6913_2.patch, 1.4 KB (added by , 13 years ago) |
---|
-
ckeditor_php4.php
566 566 // JS's "1" and 1 are not. So if we pass "1" or 1 from the PHP backend, 567 567 // we should get the same result in the JS frontend (string). 568 568 // Character replacements for JSON. 569 static $jsonReplaces = array(array("\\", "/", "\n", "\t", "\r", "\ b", "\f", '"'),569 static $jsonReplaces = array(array("\\", "/", "\n", "\t", "\r", "\x08", "\f", '"'), 570 570 array('\\\\', '\\/', '\\n', '\\t', '\\r', '\\b', '\\f', '\"')); 571 571 572 572 $val = str_replace($jsonReplaces[0], $jsonReplaces[1], $val); -
ckeditor_php5.php
556 556 // JS's "1" and 1 are not. So if we pass "1" or 1 from the PHP backend, 557 557 // we should get the same result in the JS frontend (string). 558 558 // Character replacements for JSON. 559 static $jsonReplaces = array(array("\\", "/", "\n", "\t", "\r", "\ b", "\f", '"'),559 static $jsonReplaces = array(array("\\", "/", "\n", "\t", "\r", "\x08", "\f", '"'), 560 560 array('\\\\', '\\/', '\\n', '\\t', '\\r', '\\b', '\\f', '\"')); 561 561 562 562 $val = str_replace($jsonReplaces[0], $jsonReplaces[1], $val);