htmlspecialchars for single lines

I think it is a security hole.
This commit is contained in:
Viktor Szépe 2015-03-20 13:05:09 +01:00
parent df5f54c528
commit a0c4b7b691

View file

@ -256,7 +256,7 @@ class dBug
$lines=preg_split('/\R/u', $nv);
$linesCount=count($lines);
if ($linesCount==1 && $length<=static::$embeddedStringMaxLength) {
$this->renderPrimitiveType('string', 'string ['.$length.']', $var);
$this->renderPrimitiveType('string', 'string ['.$length.']', $nv);
} else {
$this->makeTableHeader('string', 'string ('.$length.' chars @ '.$linesCount.' lines)');
foreach ($lines as $num=>$line) {