diff options
author | vipsoft <vipsoft@59fd770c-687e-43c8-a1e3-f5a4ff64c105> | 2009-12-14 18:57:40 +0300 |
---|---|---|
committer | vipsoft <vipsoft@59fd770c-687e-43c8-a1e3-f5a4ff64c105> | 2009-12-14 18:57:40 +0300 |
commit | 47a2ecd21a3d7a352a6c65c2334b6fd8a4296f5a (patch) | |
tree | 90a9f51b80a64e3b52e50f158270d4c979d8b383 /misc | |
parent | 778c09540f19812342f274b0632846d596468bc4 (diff) |
Plugins page: use redirectToUrl on external links
Diffstat (limited to 'misc')
-rw-r--r-- | misc/redirectToUrl.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/misc/redirectToUrl.php b/misc/redirectToUrl.php index 5b4c9ba4c8..4df113fcec 100644 --- a/misc/redirectToUrl.php +++ b/misc/redirectToUrl.php @@ -2,7 +2,10 @@ // we redirect to the website instead of linking directly because we don't want // to expose the referer on the piwik demo $url = htmlentities($_GET['url']); -if(!preg_match('~http://(dev\.|forum\.)?piwik.org(/|$)~', $url)) { die; } +if(!preg_match('~http://(dev\.|forum\.)?piwik.org(/|$)~', $url) +&& !in_array($url, array( + 'http://blogvertising.pl/', +))) { die; } ?> <html><head> <meta http-equiv="refresh" content="0;url=<?php echo $url; ?>"/> |