mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 05:50:42 +02:00
[ticket/13455] Update calls to request_var()
PHPBB3-13455
This commit is contained in:
@@ -139,7 +139,7 @@ class session
|
||||
'root_script_path' => str_replace(' ', '%20', htmlspecialchars($root_script_path)),
|
||||
|
||||
'page' => $page,
|
||||
'forum' => request_var('f', 0),
|
||||
'forum' => $request->variable('f', 0),
|
||||
);
|
||||
|
||||
return $page_array;
|
||||
@@ -253,23 +253,23 @@ class session
|
||||
|
||||
if ($request->is_set($config['cookie_name'] . '_sid', \phpbb\request\request_interface::COOKIE) || $request->is_set($config['cookie_name'] . '_u', \phpbb\request\request_interface::COOKIE))
|
||||
{
|
||||
$this->cookie_data['u'] = request_var($config['cookie_name'] . '_u', 0, false, true);
|
||||
$this->cookie_data['k'] = request_var($config['cookie_name'] . '_k', '', false, true);
|
||||
$this->session_id = request_var($config['cookie_name'] . '_sid', '', false, true);
|
||||
$this->cookie_data['u'] = $request->variable($config['cookie_name'] . '_u', 0, false, \phpbb\request\request_interface::COOKIE);
|
||||
$this->cookie_data['k'] = $request->variable($config['cookie_name'] . '_k', '', false, \phpbb\request\request_interface::COOKIE);
|
||||
$this->session_id = $request->variable($config['cookie_name'] . '_sid', '', false, \phpbb\request\request_interface::COOKIE);
|
||||
|
||||
$SID = (defined('NEED_SID')) ? '?sid=' . $this->session_id : '?sid=';
|
||||
$_SID = (defined('NEED_SID')) ? $this->session_id : '';
|
||||
|
||||
if (empty($this->session_id))
|
||||
{
|
||||
$this->session_id = $_SID = request_var('sid', '');
|
||||
$this->session_id = $_SID = $request->variable('sid', '');
|
||||
$SID = '?sid=' . $this->session_id;
|
||||
$this->cookie_data = array('u' => 0, 'k' => '');
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->session_id = $_SID = request_var('sid', '');
|
||||
$this->session_id = $_SID = $request->variable('sid', '');
|
||||
$SID = '?sid=' . $this->session_id;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user