Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function stripDangerousValues($input) {
- if (is_array($input)) {
- foreach ($input as $key => $value) {
- if ($key !== '' && $key[0] === '#') {
- unset($input[$key]);
- }
- else {
- $input[$key] = stripDangerousValues($input[$key]);
- }
- }
- }
- return $input;
- }
- $_REQUEST = stripDangerousValues($_REQUEST);
- $_GET = stripDangerousValues($_GET);
- $_POST = stripDangerousValues($_POST);
Advertisement
Add Comment
Please, Sign In to add comment