/ Published in: PHP
All credit for this code goes to the all mighty Fou-Lou of codingforums.com (link given).
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
{ function GPCStrip($arr) { { foreach ($arr AS $arrKey => $arrVal) { $arr[$arrKey] = GPCStrip($arrVal); } } { } return $arr; } $_GET = GPCStrip($_GET); $_POST = GPCStrip($_POST); $_COOKIE = GPCStrip($_COOKIE); { foreach ($_FILES AS $key => $val) { } } $_FILES = GPCStrip($_FILES); } { }
URL: http://codingforums.com/showthread.php?t=144149