perminder-klair
12/5/2013 - 5:19 PM

Filter GET and POST

Filter GET and POST

/* prevent XSS. */
$_GET   = filter_input_array(INPUT_GET, FILTER_SANITIZE_STRING);
$_POST  = filter_input_array(INPUT_POST, FILTER_SANITIZE_STRING);