mirror of
https://github.com/maximebf/php-debugbar.git
synced 2025-07-26 03:01:23 +02:00
Fix not rendering correctly in some cases (#658)
This commit is contained in:
@@ -1212,7 +1212,7 @@ class JavascriptRenderer
|
|||||||
{
|
{
|
||||||
$js = sprintf("%s.addDataSet(%s, \"%s\"%s);\n",
|
$js = sprintf("%s.addDataSet(%s, \"%s\"%s);\n",
|
||||||
$this->variableName,
|
$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,
|
$requestId,
|
||||||
$suffix ? ", " . json_encode($suffix) : ''
|
$suffix ? ", " . json_encode($suffix) : ''
|
||||||
);
|
);
|
||||||
|
Reference in New Issue
Block a user