Ticket #1343: 1343.patch

File 1343.patch, 673 bytes (added by Frederico Caldeira Knabben, 16 years ago)
  • _source/includes/fckstringsprocessor.inc

     
    3131
    3232        function ProtectStrings( $source )
    3333        {
     34                // Catches string literals, regular expressions and conditional comments.
    3435                return preg_replace_callback(
    35                         '/(?:("|\').*?(?<!\\\\)\1|(?<![\/\\\\])\/[^\/\*].*?(?<!\\\\)\/)/',
     36                        '/(?:("|\').*?(?<!\\\\)\1|(?<![\/\\\\])\/[^\/\*].*?(?<!\\\\)\/)|(?s:\/\*@(?:cc_on|if|elif|else|end).*?@\*\/)/',
    3637                        array( &$this, '_ProtectStringsMatch' ), $source ) ;
    3738        }
    3839
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy