aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/path_helper.php
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/phpbb/path_helper.php')
-rw-r--r--phpBB/phpbb/path_helper.php6
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;