mirror of
https://github.com/php-flasher/php-flasher.git
synced 2026-03-31 15:07:47 +01:00
fix: </head> tag being removed
This commit is contained in:
committed by
KHOUBZA Younes
parent
b37fe49e4c
commit
32460e451a
@@ -61,8 +61,9 @@ final class ResponseExtension
|
||||
}
|
||||
|
||||
$htmlResponse = "\n".str_replace("\n", '', $htmlResponse)."\n";
|
||||
$offset = $alreadyRendered ? strlen(HtmlPresenter::FLASHER_FLASH_BAG_PLACE_HOLDER) : 0;
|
||||
|
||||
$content = substr($content, 0, $insertPosition).$htmlResponse.substr($content, $insertPosition);
|
||||
$content = substr($content, 0, $insertPosition).$htmlResponse.substr($content, $insertPosition + $offset);
|
||||
$response->setContent($content);
|
||||
|
||||
return $response;
|
||||
|
||||
Reference in New Issue
Block a user