Advertisement
Guest User

Untitled

a guest
Aug 20th, 2014
248
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. if (DBSEO_URL_QUERY_FILE == 'redirect-to/')
  2. {
  3. $redirectUrl = str_replace(array('"', ' '), array('"', ''), preg_replace('#&(?![a-z0-9\#]+;)#si', '&', $_GET['redirect']));
  4.  
  5. if (strpos($redirectUrl, '://') !== false AND !preg_match('#["<>]#', $redirectUrl))
  6. {
  7. // We're redirecting
  8. header('Location: ' . $redirectUrl);
  9. die();
  10. }
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement