Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authormatt <matt@59fd770c-687e-43c8-a1e3-f5a4ff64c105>2009-12-14 12:06:01 +0300
committermatt <matt@59fd770c-687e-43c8-a1e3-f5a4ff64c105>2009-12-14 12:06:01 +0300
commitcf701012d4c2c77a84b4caabb88396f3b0001db7 (patch)
tree0369ae1f26e127752af4bc22c9f14ed9a1d55a9f /misc
parent5a7b7ed043cdccb8456cd12149e9d905b9c740b6 (diff)
Security plugin: small translation modification and redirection to URL without publishing the referer
Diffstat (limited to 'misc')
-rw-r--r--misc/redirectToUrl.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/misc/redirectToUrl.php b/misc/redirectToUrl.php
index c5597aa4c4..89258eb4e8 100644
--- a/misc/redirectToUrl.php
+++ b/misc/redirectToUrl.php
@@ -2,7 +2,8 @@
// 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://(forum\.)?piwik.org(/|$)~', $url)) { die; }
+if(!preg_match('~http://(forum\.)?piwik.org(/|$)~', $url)
+ && $url != 'http://phpsec.org/') { die; }
?>
<html><head>
<meta http-equiv="refresh" content="0;url=<?php echo $url; ?>"/>