Skip to content

Commit 3bf185f

Browse files
committed
Merge pull request #327 from cakephp/master-fix-output-escape
Escape key
2 parents 487abd7 + 649b7bf commit 3bf185f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/View/Helper/ToolbarHelper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ public function makeNeatArray($values, $openDepth = 0, $currentDepth = 0, $doubl
7878
$values[] = '(empty)';
7979
}
8080
foreach ($values as $key => $value) {
81-
$out .= '<li><strong>' . $key . '</strong>';
81+
$out .= '<li><strong>' . h($key, $doubleEncode) . '</strong>';
8282
if (is_array($value) && count($value) > 0) {
8383
$out .= '(array)';
8484
} elseif (is_object($value)) {

0 commit comments

Comments
 (0)