aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes
diff options
context:
space:
mode:
authorDavid M <davidmj@users.sourceforge.net>2007-07-06 21:09:13 +0000
committerDavid M <davidmj@users.sourceforge.net>2007-07-06 21:09:13 +0000
commitf88d8bf526f7b601961d0d8b810b7a14b40651b6 (patch)
tree2b38c64c944008cc7de2e976b37286acb0620184 /phpBB/includes
parent554e05a5b5daddf67ff6f7c1c6bae8813e4cda48 (diff)
downloadforums-f88d8bf526f7b601961d0d8b810b7a14b40651b6.tar
forums-f88d8bf526f7b601961d0d8b810b7a14b40651b6.tar.gz
forums-f88d8bf526f7b601961d0d8b810b7a14b40651b6.tar.bz2
forums-f88d8bf526f7b601961d0d8b810b7a14b40651b6.tar.xz
forums-f88d8bf526f7b601961d0d8b810b7a14b40651b6.zip
#12705
git-svn-id: file:///svn/phpbb/trunk@7838 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes')
-rw-r--r--phpBB/includes/session.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/phpBB/includes/session.php b/phpBB/includes/session.php
index 9e70779556..495fdcee48 100644
--- a/phpBB/includes/session.php
+++ b/phpBB/includes/session.php
@@ -43,6 +43,7 @@ class session
if (!$script_name)
{
$script_name = (!empty($_SERVER['REQUEST_URI'])) ? $_SERVER['REQUEST_URI'] : getenv('REQUEST_URI');
+ $script_name = (($pos = strpos($script_name, '?')) !== false) ? substr($script_name, 0, strpos($script_name, '?')) : $script_name;
$page_array['failover'] = 1;
}