Skip to content

Commit

Permalink
library/form: Fix return value of `getName()' not being filterd the f…
Browse files Browse the repository at this point in the history
…irst time it's called

`Form::getName()' auto-detects the form's name if it's not set and sets the form's name using `Zend_Form::setName()'.
`Zend_Form::setName()' then filters the form name stripping backslash '\' characters. The first call to `Form::getName()'
did not regard the filtering and thus returned the unfiltered name which led to `Form::wasSent()' returning `false'.

refs #5525
  • Loading branch information
lippserd committed Sep 1, 2014
1 parent f3e74f0 commit 0822aff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/Icinga/Web/Form.php
Expand Up @@ -585,8 +585,8 @@ public function getName()
if (! $name) {
$name = get_class($this);
$this->setName($name);
$name = parent::getName();
}

return $name;
}

Expand Down

0 comments on commit 0822aff

Please sign in to comment.