Update Requirements.php

Makes requirements inclusion work with old PCRE versions
This commit is contained in:
Juri Demeschew 2014-10-31 15:41:58 +01:00
parent fbccd1af3f
commit 19f11e72b0

View File

@ -768,9 +768,9 @@ class Requirements_Backend {
&& &&
//check that the script tag is not inside a html comment tag //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) { if($canWriteToBody) {