Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (DBSEO_URL_QUERY_FILE == 'redirect-to/')
- {
- $redirectUrl = str_replace(array('"', ' '), array('"', ''), preg_replace('#&(?![a-z0-9\#]+;)#si', '&', $_GET['redirect']));
- if (strpos($redirectUrl, '://') !== false AND !preg_match('#["<>]#', $redirectUrl))
- {
- // We're redirecting
- header('Location: ' . $redirectUrl);
- die();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement