Skip to content

Commit

Permalink
Don't send disabled form fields.
Browse files Browse the repository at this point in the history
  • Loading branch information
yunosh committed Dec 2, 2013
1 parent 36faf2b commit 22925af
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions framework/Form/lib/Horde/Form.php
Expand Up @@ -719,6 +719,11 @@ function getInfo($vars, &$info)
function _getInfoFromVariables($variables, &$vars, &$info)
{
foreach ($variables as $var) {
if ($var->isDisabled()) {
// Disabled fields are not submitted by some browsers, so don't
// pretend they were.
continue;
}
if ($var->isArrayVal()) {
$var->getInfo($vars, $values);
if (is_array($values)) {
Expand Down

0 comments on commit 22925af

Please sign in to comment.