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
diff options
context:
space:
mode:
authorMatthieu Napoli <matthieu@mnapoli.fr>2014-10-13 07:57:23 +0400
committerMatthieu Napoli <matthieu@mnapoli.fr>2014-10-13 07:57:23 +0400
commit2aae308d66cbf2d54bdff95ca5a7f25e7b964279 (patch)
tree70caef611f853bac24478266326eb94f650b81d2 /core/FrontController.php
parent17a9c8f651b0308188e44ecc8640f11e6a5a19c9 (diff)
Made FrontController use Url::getCurrentUrl()
Diffstat (limited to 'core/FrontController.php')
-rw-r--r--core/FrontController.php4
1 files changed, 1 insertions, 3 deletions
diff --git a/core/FrontController.php b/core/FrontController.php
index ea93fb8932..34da03fd9f 100644
--- a/core/FrontController.php
+++ b/core/FrontController.php
@@ -85,9 +85,7 @@ class FrontController extends Singleton
}
$filter = new Router();
- // We can't use Url::getCurrentUrl() since it doesn't really return the current URL
- $url = Url::getCurrentScheme() . '://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
- $redirection = $filter->filterUrl($url);
+ $redirection = $filter->filterUrl(Url::getCurrentUrl());
if ($redirection !== null) {
Url::redirectToUrl($redirection);
return;