diff options
author | Tristan Darricau <github@nicofuma.fr> | 2014-06-29 21:02:03 +0200 |
---|---|---|
committer | Tristan Darricau <github@nicofuma.fr> | 2014-06-29 21:02:03 +0200 |
commit | 31099a8efda204d764a1d6677a80ff5f710f4575 (patch) | |
tree | 5d69a4163b579cf53184093c5cb758a69c4927fa /phpBB/phpbb | |
parent | 8feb383468cf0dc514a442c3cd03e101b9228799 (diff) | |
download | forums-31099a8efda204d764a1d6677a80ff5f710f4575.tar forums-31099a8efda204d764a1d6677a80ff5f710f4575.tar.gz forums-31099a8efda204d764a1d6677a80ff5f710f4575.tar.bz2 forums-31099a8efda204d764a1d6677a80ff5f710f4575.tar.xz forums-31099a8efda204d764a1d6677a80ff5f710f4575.zip |
[ticket/12787] Use a parameter (_referer) instead of the Referer header
PHPBB3-12787
Diffstat (limited to 'phpBB/phpbb')
-rw-r--r-- | phpBB/phpbb/path_helper.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/phpBB/phpbb/path_helper.php b/phpBB/phpbb/path_helper.php index ea45393709..287d5d9e0a 100644 --- a/phpBB/phpbb/path_helper.php +++ b/phpBB/phpbb/path_helper.php @@ -192,11 +192,13 @@ class path_helper * app.php/foo/bar memberlist.php ../../ * ../page.php memberlist.php ./phpBB/ * ../sub/page.php memberlist.php ./../phpBB/ + * + * The referer must be specified as a parameter in the query. */ - if ($this->request->is_ajax() && $this->request->header('Referer')) + if ($this->request->is_ajax() && $this->symfony_request->get('_referer')) { $referer_web_root_path = $this->get_web_root_path_from_ajax_referer( - $this->request->header('Referer'), + $this->symfony_request->get('_referer'), $this->symfony_request->getUriForPath('') ); return $this->web_root_path = $this->phpbb_root_path . $referer_web_root_path; |