mirror of
https://github.com/phpbb/phpbb.git
synced 2025-05-11 01:55:24 +02:00
Hmmm. Tawny port and stilton
git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@8558 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
5ea735d3ad
commit
2f5297751a
@ -1319,6 +1319,11 @@ class session
|
|||||||
else if ($check_script_path && rtrim($this->page['root_script_path'], '/') !== '' )
|
else if ($check_script_path && rtrim($this->page['root_script_path'], '/') !== '' )
|
||||||
{
|
{
|
||||||
$ref = substr($ref, strlen($host));
|
$ref = substr($ref, strlen($host));
|
||||||
|
$server_port = (!empty($_SERVER['SERVER_PORT'])) ? (int) $_SERVER['SERVER_PORT'] : (int) getenv('SERVER_PORT');
|
||||||
|
if ($server_port !== 80 && $server_port !== 443 && stripos($ref , ":$server_port") === 0)
|
||||||
|
{
|
||||||
|
$ref = substr($ref, strlen(":$server_port"));
|
||||||
|
}
|
||||||
if (!(stripos(rtrim($ref, '/'), rtrim($this->page['root_script_path'], '/')) === 0))
|
if (!(stripos(rtrim($ref, '/'), rtrim($this->page['root_script_path'], '/')) === 0))
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user