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:
parent
11896db266
commit
9f7597754a
@ -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) : ''
|
||||||
);
|
);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user