mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-06 16:18:41 +02:00
Merge pull request #3594 from jdemeschew/patch-1
Makes requirements inclusion work with old PCRE versions.
This commit is contained in:
commit
bd23ff0a3a
@ -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