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 be1d174 commit 9683a0dCopy full SHA for 9683a0d
Model/Controller/ResultPlugin.php
@@ -65,9 +65,9 @@ public function aroundRenderResult(
65
$startTag = '<script';
66
$endTag = '</script>';
67
68
- $start = -1;
+ $start = 0;
69
$i = 0;
70
- while (false !== ($start = stripos($html, $startTag, $start + 1))) {
+ while (false !== ($start = stripos($html, $startTag, $start))) {
71
$i++;
72
if ($i > 1000 ) {
73
return $result;
@@ -82,6 +82,7 @@ public function aroundRenderResult(
82
$script = substr($html, $start, $len);
83
84
if (false !== stripos($script, self::EXCLUDE_FLAG_PATTERN)) {
85
+ $start++;
86
continue;
87
}
88
0 commit comments