Merge pull request #3594 from jdemeschew/patch-1

Makes requirements inclusion work with old PCRE versions.
This commit is contained in:
Daniel Hensby 2014-10-31 15:23:03 +00:00
commit bd23ff0a3a

View File

@ -768,9 +768,9 @@ class Requirements_Backend {
&&
//check that the script tag is not inside a html comment tag
!(
preg_match('/.*(?|(?<tag><!--)|(?<tag>-->))/U', $content, $commentTags, 0, $p1)
preg_match('/.*(?|(<!--)|(-->))/U', $content, $commentTags, 0, $p1)
&&
$commentTags['tag'] == '-->'
$commentTags[1] == '-->'
);
if($canWriteToBody) {