Skip to content

Commit 15345fc

Browse files
committed
Merge branch '3.3.x'
2 parents b0f104d + 1794f9d commit 15345fc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

path_helper.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -220,13 +220,13 @@ public function get_web_root_path()
220220
*
221221
* The referer must be specified as a parameter in the query.
222222
*/
223-
if ($this->request->is_ajax() && $this->symfony_request->get('_referer'))
223+
if ($this->request->is_ajax() && $this->request->header('Referer'))
224224
{
225225
// We need to escape $absolute_board_url because it can be partially concatenated to the result.
226226
$absolute_board_url = $this->request->escape($this->symfony_request->getSchemeAndHttpHost() . $this->symfony_request->getBasePath(), true);
227227

228228
$referer_web_root_path = $this->get_web_root_path_from_ajax_referer(
229-
$this->symfony_request->get('_referer'),
229+
$this->request->header('Referer'),
230230
$absolute_board_url
231231
);
232232
return $this->web_root_path = $referer_web_root_path;

0 commit comments

Comments
 (0)