Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Check for SQLi everywhere
- foreach($_POST as $key => $value)
- {
- if (strpos($value,';') or strpos($value,"`") or strpos($value,"'"))
- {
- die ('Please refrain from using a semicolon (;), single quote (\') or a backtick (`). Due to a technical error there are certain scenarios where this could cause the database to do unwanted things. Fixing this is on my high-priority list and will be done soon.');
- }
- }
- foreach($_GET as $key => $value)
- {
- if (strpos($value,';') or strpos($value,"`"))
- {
- die ('Please refrain from using a semicolon (;), single quote (\') or a backtick (`). Due to a technical error there are certain scenarios where this could cause the database to do unwanted things. Fixing this is on my high-priority list and will be done soon.');
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment