Fixed bug with strings rendering.
1 now works with different LF 2 fixed the bug with 'empty string' in cases when htmlspecialchars returns empry string
This commit is contained in:
parent
b2a6f0c7af
commit
a39261588e
1 changed files with 2 additions and 2 deletions
4
dBug.php
4
dBug.php
|
@ -236,8 +236,8 @@ class dBug {
|
|||
return;
|
||||
}
|
||||
$length=strlen($var);
|
||||
$nv=htmlspecialchars($var);
|
||||
$lines=explode("\n",$nv);
|
||||
$nv=htmlspecialchars($var,ENT_QUOTES | ENT_SUBSTITUTE,'');
|
||||
$lines=preg_split('/\R/', $nv);
|
||||
$linesCount=count($lines);
|
||||
if($linesCount==1 && $length<=self::$embeddedStringMaxLength){
|
||||
$this->renderPrimitiveType('string','string ['.$length.']',$var);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue