Skip to content

Commit

Permalink
Kohana::debug() should escape array keys the same as values, fixes #2293
Browse files Browse the repository at this point in the history
  • Loading branch information
Woody Gilk committed Oct 29, 2009
1 parent 260b532 commit 8176768
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classes/kohana/core.php
Original file line number Diff line number Diff line change
Expand Up @@ -1086,7 +1086,7 @@ protected static function _dump( & $var, $length = 128, $level = 0)
if ($key === $marker) continue;
if ( ! is_int($key))
{
$key = '"'.$key.'"';
$key = '"'.htmlspecialchars($key, ENT_NOQUOTES, self::$charset).'"';
}

$output[] = "$space$s$key => ".Kohana::_dump($val, $length, $level + 1);
Expand Down

0 comments on commit 8176768

Please sign in to comment.