summaryrefslogtreecommitdiffstats
path: root/Http/HttpUtils.php
diff options
context:
space:
mode:
authorChristophe Coevoet <stof@notk.org>2011-09-18 00:21:28 +0200
committerChristophe Coevoet <stof@notk.org>2011-09-18 00:24:28 +0200
commiteff1360d2f1f16982544997ac5f6d6670a7bb736 (patch)
treebea6c4e5977ab185905b59d65c638309b36a5c24 /Http/HttpUtils.php
parenteb76004f830ee0ec049436c50b27fd306f58c210 (diff)
downloadsymfony-security-eff1360d2f1f16982544997ac5f6d6670a7bb736.zip
symfony-security-eff1360d2f1f16982544997ac5f6d6670a7bb736.tar.gz
symfony-security-eff1360d2f1f16982544997ac5f6d6670a7bb736.tar.bz2
Fixed the creation of the subrequests
The subrequest must be created using an absolute path to keep the informations about the host and the base path. Closes #2168
Diffstat (limited to 'Http/HttpUtils.php')
-rw-r--r--Http/HttpUtils.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/Http/HttpUtils.php b/Http/HttpUtils.php
index a293538..a26b1bd 100644
--- a/Http/HttpUtils.php
+++ b/Http/HttpUtils.php
@@ -71,6 +71,9 @@ class HttpUtils
$this->resetLocale($request);
$path = $this->generateUrl($path, true);
}
+ if (0 !== strpos($path, 'http')) {
+ $path = $request->getUriForPath($path);
+ }
$newRequest = Request::create($path, 'get', array(), $request->cookies->all(), array(), $request->server->all());
if ($session = $request->getSession()) {