diff options
author | Christophe Coevoet <stof@notk.org> | 2011-09-18 00:21:28 +0200 |
---|---|---|
committer | Christophe Coevoet <stof@notk.org> | 2011-09-18 00:24:28 +0200 |
commit | eff1360d2f1f16982544997ac5f6d6670a7bb736 (patch) | |
tree | bea6c4e5977ab185905b59d65c638309b36a5c24 /Http/HttpUtils.php | |
parent | eb76004f830ee0ec049436c50b27fd306f58c210 (diff) | |
download | symfony-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.php | 3 |
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()) { |