You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The example of checkIntegerRange seems bad, if you pass an array the is_string fails and is_int passes because of the explicit conversion.
While this is safe, as I believe (array() <= int) is always false, the fact that it can reach this point is not ideal, someone could modify this function to instead just have the min which will pass.
(Have not tested on newer versions of PHP)
The text was updated successfully, but these errors were encountered:
Reading over:
http://phpsecurity.readthedocs.org/en/latest/Input-Validation.html
The example of checkIntegerRange seems bad, if you pass an array the is_string fails and is_int passes because of the explicit conversion.
While this is safe, as I believe (array() <= int) is always false, the fact that it can reach this point is not ideal, someone could modify this function to instead just have the min which will pass.
(Have not tested on newer versions of PHP)
The text was updated successfully, but these errors were encountered: