diff options
| author | David M <davidmj@users.sourceforge.net> | 2007-07-06 21:09:13 +0000 |
|---|---|---|
| committer | David M <davidmj@users.sourceforge.net> | 2007-07-06 21:09:13 +0000 |
| commit | f88d8bf526f7b601961d0d8b810b7a14b40651b6 (patch) | |
| tree | 2b38c64c944008cc7de2e976b37286acb0620184 /phpBB | |
| parent | 554e05a5b5daddf67ff6f7c1c6bae8813e4cda48 (diff) | |
| download | forums-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')
| -rw-r--r-- | phpBB/docs/CHANGELOG.html | 1 | ||||
| -rw-r--r-- | phpBB/includes/session.php | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/phpBB/docs/CHANGELOG.html b/phpBB/docs/CHANGELOG.html index 873ea9e7a9..30186b8a82 100644 --- a/phpBB/docs/CHANGELOG.html +++ b/phpBB/docs/CHANGELOG.html @@ -223,6 +223,7 @@ p a { <li>[Fix] Allow for negative and decimal numbers to be in transposed queries in the Oracle and Firebird DBAL (Bug #13033)</li> <li>[Fix] Some jabber related bugs (Bug #12989, #11805, #11809)</li> <li>[Fix] Added UTF-8 support for banning via the MCP (Bug #13013)</li> + <li>[Fix] Properly detect the script name in session::extract_current_page() if PHP_SELF is not defined (Bug #12705) - patch provided by ToonArmy</li> </ul> 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; } |
