02-09-2018, 09:03 PM
Hello!
I recently strumbled upon a problem concerning the Validate.php Class
A user wanted to use the character & in a password, but it wouldn't let the password validate.
Turns out the matching option converted one & to while the other remained a normal &
$value got converted to$source[$rule_value] remained &
hence the missmatch.
What would be a quick fix for this?
I would guess:
sanitize($source[$rule_value]);
I recently strumbled upon a problem concerning the Validate.php Class
A user wanted to use the character & in a password, but it wouldn't let the password validate.
Turns out the matching option converted one & to
Code:
& a m p ;
$value got converted to
Code:
& a m p ;
hence the missmatch.
What would be a quick fix for this?
I would guess:
sanitize($source[$rule_value]);