mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-10 21:38:54 +00:00
Merge branch '3.1.x'
Conflicts: phpBB/phpbb/session.php
This commit is contained in:
commit
8ec18b10c3
1 changed files with 5 additions and 1 deletions
|
@ -130,6 +130,10 @@ class session
|
|||
$script_path .= (substr($script_path, -1, 1) == '/') ? '' : '/';
|
||||
$root_script_path .= (substr($root_script_path, -1, 1) == '/') ? '' : '/';
|
||||
|
||||
$forum_id = $request->variable('f', 0);
|
||||
// maximum forum id value is maximum value of mediumint unsigned column
|
||||
$forum_id = ($forum_id > 0 && $forum_id < 16777215) ? $forum_id : 0;
|
||||
|
||||
$page_array += array(
|
||||
'page_name' => $page_name,
|
||||
'page_dir' => $page_dir,
|
||||
|
@ -139,7 +143,7 @@ class session
|
|||
'root_script_path' => str_replace(' ', '%20', htmlspecialchars($root_script_path)),
|
||||
|
||||
'page' => $page,
|
||||
'forum' => $request->variable('f', 0),
|
||||
'forum' => $forum_id,
|
||||
);
|
||||
|
||||
return $page_array;
|
||||
|
|
Loading…
Add table
Reference in a new issue