Guest User

Untitled

a guest
Apr 20th, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.43 KB | None | 0 0
  1. function secure_sieve($ore) {
  2.         if(is_array($ore)) {
  3.             $gold = array();
  4.             foreach($ore as $key => $value)
  5.                 $gold[$key] = trim(str_replace ('"', '"', strip_tags($value)));
  6.         } else
  7.             $gold = trim(str_replace ('"', '"', strip_tags($ore)));
  8.  
  9.         return $gold;
  10. }
  11.  
  12. $_GET =  secure_sieve($_GET);  // zabezpiecza GET
  13. $_POST = secure_sieve($_POST); // zabezpiecza POST
Add Comment
Please, Sign In to add comment