mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Update Requirements.php
Makes requirements inclusion work with old PCRE versions
This commit is contained in:
parent
fbccd1af3f
commit
19f11e72b0
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user