diff options
author | Matthieu Napoli <matthieu@mnapoli.fr> | 2014-10-13 07:57:23 +0400 |
---|---|---|
committer | Matthieu Napoli <matthieu@mnapoli.fr> | 2014-10-13 07:57:23 +0400 |
commit | 2aae308d66cbf2d54bdff95ca5a7f25e7b964279 (patch) | |
tree | 70caef611f853bac24478266326eb94f650b81d2 /core/FrontController.php | |
parent | 17a9c8f651b0308188e44ecc8640f11e6a5a19c9 (diff) |
Made FrontController use Url::getCurrentUrl()
Diffstat (limited to 'core/FrontController.php')
-rw-r--r-- | core/FrontController.php | 4 |
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; |