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/core
diff options
context:
space:
mode:
authorStefan Giehl <stefan@piwik.org>2017-11-10 00:35:12 +0300
committerMatthieu Aubry <mattab@users.noreply.github.com>2017-11-10 00:35:12 +0300
commitded2e94ff79b47fd475b7f48f5d61c5872aa3b9e (patch)
tree9a11d0be1cf03db2fc08b16771ace270485169fa /core
parenta0545edb8919984832863b1ee59e5cd3d5a1c6b3 (diff)
Disallow indexing for all pages doing a redirect (#12263)
Diffstat (limited to 'core')
-rw-r--r--core/Url.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/Url.php b/core/Url.php
index a0d480da33..4554d23357 100644
--- a/core/Url.php
+++ b/core/Url.php
@@ -461,6 +461,7 @@ class Url
|| strpos($url, 'index.php') === 0
) {
Common::sendResponseCode(302);
+ Common::sendHeader("X-Robots-Tag: noindex");
Common::sendHeader("Location: $url");
} else {
echo "Invalid URL to redirect to.";