Escape line breaks
All checks were successful
Push image to registry / build-image (push) Successful in 4m49s

This commit is contained in:
2025-06-08 11:06:41 +02:00
parent c3941b5e33
commit 20fca31ced

View File

@ -297,6 +297,7 @@ abstract class BrowserJob implements ShouldQueue
*/
private function parseJavaScriptString(string $string): string
{
$string = str_replace("\n", "\\n", $string);
return str_replace("'", "\\'", $string);
}