Slide 5
Slide 5 text
Variables
Variables
- Glean all globals _GET, $_POST, $_COOKIE, and $_REQUEST
- Be wary of automatically set variables as well $_SERVER, $_ENV
- Be aware of incoming data with executable code
- Make generous use of *filter_var* function
- Watch out for extreme input values
- Verify that the encoding is what you expect. Preferrably limit to UTF-8
5