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 2fcda67 commit 20c78d6Copy full SHA for 20c78d6
Model/Controller/ResultPlugin.php
@@ -65,7 +65,14 @@ public function aroundRenderResult(
65
$startTag = '<script';
66
$endTag = '</script>';
67
68
- while (false !== ($start = stripos($html, $startTag))) {
+ $start = -1;
69
+ $i = 0;
70
+ while (false !== ($start = stripos($html, $startTag, $start + 1))) {
71
+ $i++;
72
+ if ($i > 1000 ) {
73
+ return $result;
74
+ }
75
+
76
$end = stripos($html, $endTag, $start);
77
if (false === $end) {
78
break;
0 commit comments