-
-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG]: Form filters are not working #15438
Comments
@wurst-hans @niden we can add (v.5.0.0) new method |
Thanks for clarification. But that would be great, if filtered values are accessible in any way. In most cases my forms are related to multiple models, so I don't use |
Resolved in #15759 |
Using Phalcon 4.1.0 on PHP 7.4.16 there's an issue with forms using filters.
Sample code:
When using a short firstname, for example "tom" the validation works and returns an error:
But when using a longer firstname, for example " michael" (with two leading whitespaces!), the validator is satisfied, but the filters aren't applied:
I'm using
Di\FactoryDefault
and the filters have been executed, seeprint_r($this->di->get('filter'))
:But how to get the filtered values then? Wether in
$_POST
nor in$form->getValue('firstname')
the raw input value has been sanitized.The text was updated successfully, but these errors were encountered: