Skip to content

Instantly share code, notes, and snippets.

@ridvanbaluyos
Created April 7, 2015 12:08
Show Gist options
  • Save ridvanbaluyos/6dd1e57f4fc77ebe2b90 to your computer and use it in GitHub Desktop.
Save ridvanbaluyos/6dd1e57f4fc77ebe2b90 to your computer and use it in GitHub Desktop.
private function checkQueryString()
{
if(!empty($_SERVER['QUERY_STRING']) && !preg_match('/^[\p{L}\p{P}\p{S}\p{N}\p{Z}\p{M}\p{Cyrillic}]+$/u', trim(urldecode($_SERVER['QUERY_STRING']))))
{
exit;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment