aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes
diff options
context:
space:
mode:
authorHenry Sudhof <kellanved@phpbb.com>2008-05-17 12:57:20 +0000
committerHenry Sudhof <kellanved@phpbb.com>2008-05-17 12:57:20 +0000
commit2f5297751a4643fae1917e63c620a793d9711ff3 (patch)
tree19c9937bc527a2d090ca7d8ef49cbe03c9ad3336 /phpBB/includes
parent5ea735d3adad4c70aef347dbccb5c533c2ef15d7 (diff)
downloadforums-2f5297751a4643fae1917e63c620a793d9711ff3.tar
forums-2f5297751a4643fae1917e63c620a793d9711ff3.tar.gz
forums-2f5297751a4643fae1917e63c620a793d9711ff3.tar.bz2
forums-2f5297751a4643fae1917e63c620a793d9711ff3.tar.xz
forums-2f5297751a4643fae1917e63c620a793d9711ff3.zip
Hmmm. Tawny port and stilton
git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@8558 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes')
-rw-r--r--phpBB/includes/session.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/phpBB/includes/session.php b/phpBB/includes/session.php
index e216b3e36a..43d3b1ea2b 100644
--- a/phpBB/includes/session.php
+++ b/phpBB/includes/session.php
@@ -1319,6 +1319,11 @@ class session
else if ($check_script_path && rtrim($this->page['root_script_path'], '/') !== '' )
{
$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))
{
return false;