aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes
diff options
context:
space:
mode:
authorHenry Sudhof <kellanved@phpbb.com>2008-05-17 14:34:32 +0000
committerHenry Sudhof <kellanved@phpbb.com>2008-05-17 14:34:32 +0000
commit2c9ab1ac686c11b3bcc3bbad4e4a8c2446ee4bf5 (patch)
tree7d921b025531407852d5b8652be87925eb8d1a43 /phpBB/includes
parent2f5297751a4643fae1917e63c620a793d9711ff3 (diff)
downloadforums-2c9ab1ac686c11b3bcc3bbad4e4a8c2446ee4bf5.tar
forums-2c9ab1ac686c11b3bcc3bbad4e4a8c2446ee4bf5.tar.gz
forums-2c9ab1ac686c11b3bcc3bbad4e4a8c2446ee4bf5.tar.bz2
forums-2c9ab1ac686c11b3bcc3bbad4e4a8c2446ee4bf5.tar.xz
forums-2c9ab1ac686c11b3bcc3bbad4e4a8c2446ee4bf5.zip
...
git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@8559 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes')
-rw-r--r--phpBB/includes/session.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/phpBB/includes/session.php b/phpBB/includes/session.php
index 43d3b1ea2b..661d87357f 100644
--- a/phpBB/includes/session.php
+++ b/phpBB/includes/session.php
@@ -1316,14 +1316,14 @@ class session
{
return false;
}
- 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));
- $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"));
- }
+ $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;