Skip to content

Commit

Permalink
Escape form value.
Browse files Browse the repository at this point in the history
Even though this is a numeric field, this isn't enforced until
the form is submitted.
  • Loading branch information
mrubinsk committed Dec 14, 2015
1 parent 8ecffa1 commit 11d74fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion framework/Core/lib/Horde/Core/Ui/VarRenderer/Html.php
Expand Up @@ -48,7 +48,7 @@ protected function _renderVarInput_number($form, &$var, &$vars)
return sprintf('<input type="text" size="5" name="%s" id="%s" value="%s"%s />',
htmlspecialchars($var->getVarName()),
$this->_genID($var->getVarName(), false),
$value,
htmlspecialchars($value),
$this->_getActionScripts($form, $var)
);
}
Expand Down

0 comments on commit 11d74fa

Please sign in to comment.