Skip to content
Permalink
Browse files

make string conversion in ForumHelper::secure() less specific

  • Loading branch information...
Schlaefer committed Jun 23, 2015
1 parent 79bee59 commit b395b71d5e54b8ce197ce40b70e1e75739eff5d9
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/View/Helper/FormHelper.php
@@ -557,10 +557,10 @@ public function secure(array $fields = [], array $secureAttributes = [])
$unlockedFields = $this->_unlockedFields;
foreach ($fields as $key => $value) {
if (is_numeric($value)) {
$value = (string)$value;
}
if (!is_int($key)) {
if (is_numeric($value)) {
$value = (string)$value;
}
$locked[$key] = $value;
unset($fields[$key]);
}

0 comments on commit b395b71

Please sign in to comment.
You can’t perform that action at this time.