1
0
mirror of https://github.com/maximebf/php-debugbar.git synced 2025-01-16 21:08:34 +01:00

Fix not rendering correctly in some cases (#658)

This commit is contained in:
Atsushi Matsuo 2024-06-19 18:21:39 +09:00 committed by GitHub
parent 11896db266
commit 9f7597754a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1212,7 +1212,7 @@ class JavascriptRenderer
{
$js = sprintf("%s.addDataSet(%s, \"%s\"%s);\n",
$this->variableName,
json_encode($data),
json_encode($data, JSON_HEX_TAG | JSON_HEX_APOS | JSON_HEX_QUOT | JSON_HEX_AMP | JSON_INVALID_UTF8_IGNORE),
$requestId,
$suffix ? ", " . json_encode($suffix) : ''
);