Skip to content

Commit 9890bce

Browse files
[5.2] Fix unescaped slashes break markup in script tag (joomla#44717)
1 parent f0eddc4 commit 9890bce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libraries/src/Document/Renderer/Html/MetasRenderer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ public function render($head, $params = [], $content = null)
7676
throw new \RuntimeException('Detected an override for "joomla.script.options" asset');
7777
}
7878

79-
$jsonFlags = JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE | (JDEBUG ? JSON_PRETTY_PRINT : 0);
79+
$jsonFlags = JSON_UNESCAPED_UNICODE | (JDEBUG ? JSON_PRETTY_PRINT : 0);
8080
$jsonOptions = json_encode($scriptOptions, $jsonFlags);
8181

8282
// Set content and update attributes of dummy asset to correct ones

0 commit comments

Comments
 (0)