Advertisement
laith-0093

PHP

Jan 16th, 2020
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.92 KB | None | 0 0
  1.  
  2. function clean_value($getandpost)
  3. {
  4. $getandpost = htmlspecialchars($getandpost);
  5. $getandpost = str_replace("select","",$getandpost);
  6. $getandpost = str_replace("update","",$getandpost);
  7. $getandpost = str_replace("insert","",$getandpost);
  8. $getandpost = str_replace("where","",$getandpost);
  9. $getandpost = str_replace("like","",$getandpost);
  10. $getandpost = str_replace("or","",$getandpost);
  11. $getandpost = str_replace("and","",$getandpost);
  12. $getandpost = str_replace("set","",$getandpost);
  13. $getandpost = str_replace("into","",$getandpost);
  14. $getandpost = str_replace('"',"",$getandpost);
  15. $codenumber = str_replace("'", "", $codenumber);
  16. $codenumber = str_replace(";", "", $codenumber);
  17. $codenumber = str_replace(">", "", $codenumber);
  18. $codenumber = str_replace("<", "", $codenumber);
  19. $getandpost=strip_tags($getandpost);
  20. return $getandpost;
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement