Ticket #6913: 6913_2.patch

File 6913_2.patch, 1.4 KB (added by Wiktor Walc, 8 years ago)
  • ckeditor_php4.php

     
    566566                                // JS's "1" and 1 are not. So if we pass "1" or 1 from the PHP backend,
    567567                                // we should get the same result in the JS frontend (string).
    568568                                // Character replacements for JSON.
    569                                 static $jsonReplaces = array(array("\\", "/", "\n", "\t", "\r", "\b", "\f", '"'),
     569                                static $jsonReplaces = array(array("\\", "/", "\n", "\t", "\r", "\x08", "\f", '"'),
    570570                                array('\\\\', '\\/', '\\n', '\\t', '\\r', '\\b', '\\f', '\"'));
    571571
    572572                                $val = str_replace($jsonReplaces[0], $jsonReplaces[1], $val);
  • ckeditor_php5.php

     
    556556                                // JS's "1" and 1 are not. So if we pass "1" or 1 from the PHP backend,
    557557                                // we should get the same result in the JS frontend (string).
    558558                                // Character replacements for JSON.
    559                                 static $jsonReplaces = array(array("\\", "/", "\n", "\t", "\r", "\b", "\f", '"'),
     559                                static $jsonReplaces = array(array("\\", "/", "\n", "\t", "\r", "\x08", "\f", '"'),
    560560                                array('\\\\', '\\/', '\\n', '\\t', '\\r', '\\b', '\\f', '\"'));
    561561
    562562                                $val = str_replace($jsonReplaces[0], $jsonReplaces[1], $val);
© 2003 – 2019 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy