We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4c3cff0 commit 5935b32Copy full SHA for 5935b32
1 file changed
tools/create-phar/create-phar.php
@@ -23,7 +23,7 @@
23
continue;
24
25
} elseif ($file->getExtension() === 'phtml') {
26
- $s = preg_replace_callback('#<\?php (require |readfile\(|.*file_get_contents\().*?(/.+\.(js|css))\'\)* \?>#', function ($m) use ($file) {
+ $s = preg_replace_callback('#<\?(?:php|=) (require |readfile\(|.*file_get_contents\().*?(/.+\.(js|css))\'\)* \?>#', function ($m) use ($file) {
27
return file_get_contents($file->getPath() . $m[2]);
28
}, $s);
29
$s = preg_replace_callback('#(<(script|style).*>)(.*)(</)#Uis', function ($m) {
0 commit comments