php-debugbar icon indicating copy to clipboard operation
php-debugbar copied to clipboard

CSP nonce not added to JSON encoded strings containing <script>

Open PeterMead opened this issue 2 weeks ago • 0 comments

This is a follow on from #563 which already describes the situation well so I'll just quote the short version.

This PR fixes csp errors caused by

However, #658 changed the level of escaping when JSON encoding so '<script>' becomes '\\u003Cscript\\u003E'.

PeterMead avatar Nov 25 '25 17:11 PeterMead