Ticket #1343: 1343.patch
File 1343.patch, 673 bytes (added by , 16 years ago) |
---|
-
_source/includes/fckstringsprocessor.inc
31 31 32 32 function ProtectStrings( $source ) 33 33 { 34 // Catches string literals, regular expressions and conditional comments. 34 35 return preg_replace_callback( 35 '/(?:("|\').*?(?<!\\\\)\1|(?<![\/\\\\])\/[^\/\*].*?(?<!\\\\)\/) /',36 '/(?:("|\').*?(?<!\\\\)\1|(?<![\/\\\\])\/[^\/\*].*?(?<!\\\\)\/)|(?s:\/\*@(?:cc_on|if|elif|else|end).*?@\*\/)/', 36 37 array( &$this, '_ProtectStringsMatch' ), $source ) ; 37 38 } 38 39