mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-10 05:18:52 +00:00
[ticket/13617] Enforce column size limit for session_forum_id
PHPBB3-13617
This commit is contained in:
parent
877774a296
commit
6f3f6282d1
1 changed files with 3 additions and 1 deletions
|
@ -121,6 +121,8 @@ class session
|
||||||
$script_path .= (substr($script_path, -1, 1) == '/') ? '' : '/';
|
$script_path .= (substr($script_path, -1, 1) == '/') ? '' : '/';
|
||||||
$root_script_path .= (substr($root_script_path, -1, 1) == '/') ? '' : '/';
|
$root_script_path .= (substr($root_script_path, -1, 1) == '/') ? '' : '/';
|
||||||
|
|
||||||
|
$forum_id = (isset($_REQUEST['f']) && $_REQUEST['f'] > 0 && $_REQUEST['f'] < 16777215) ? (int) $_REQUEST['f'] : 0;
|
||||||
|
|
||||||
$page_array += array(
|
$page_array += array(
|
||||||
'page_name' => $page_name,
|
'page_name' => $page_name,
|
||||||
'page_dir' => $page_dir,
|
'page_dir' => $page_dir,
|
||||||
|
@ -130,7 +132,7 @@ class session
|
||||||
'root_script_path' => str_replace(' ', '%20', htmlspecialchars($root_script_path)),
|
'root_script_path' => str_replace(' ', '%20', htmlspecialchars($root_script_path)),
|
||||||
|
|
||||||
'page' => $page,
|
'page' => $page,
|
||||||
'forum' => (isset($_REQUEST['f']) && $_REQUEST['f'] > 0) ? (int) $_REQUEST['f'] : 0,
|
'forum' => $forum_id,
|
||||||
);
|
);
|
||||||
|
|
||||||
return $page_array;
|
return $page_array;
|
||||||
|
|
Loading…
Add table
Reference in a new issue