Skip to content

Commit 62337c0

Browse files
committed
Fixes missing regex delimiter at Toolbar
1 parent 30f60bf commit 62337c0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

system/Debug/Toolbar.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@ public function prepare(RequestInterface $request = null, ResponseInterface $res
395395

396396
if (strpos($response->getBody(), '<head>') !== false)
397397
{
398-
$response->setBody(preg_replace('<head>', '<head>' . $script, $response->getBody(), 1));
398+
$response->setBody(preg_replace('/<head>/', '<head>' . $script, $response->getBody(), 1));
399399
return;
400400
}
401401

0 commit comments

Comments
 (0)