File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -220,13 +220,13 @@ public function get_web_root_path()
220
220
*
221
221
* The referer must be specified as a parameter in the query.
222
222
*/
223
- if ($ this ->request ->is_ajax () && $ this ->symfony_request -> get ( ' _referer ' ))
223
+ if ($ this ->request ->is_ajax () && $ this ->request -> header ( ' Referer ' ))
224
224
{
225
225
// We need to escape $absolute_board_url because it can be partially concatenated to the result.
226
226
$ absolute_board_url = $ this ->request ->escape ($ this ->symfony_request ->getSchemeAndHttpHost () . $ this ->symfony_request ->getBasePath (), true );
227
227
228
228
$ referer_web_root_path = $ this ->get_web_root_path_from_ajax_referer (
229
- $ this ->symfony_request -> get ( ' _referer ' ),
229
+ $ this ->request -> header ( ' Referer ' ),
230
230
$ absolute_board_url
231
231
);
232
232
return $ this ->web_root_path = $ referer_web_root_path ;
You can’t perform that action at this time.
0 commit comments