aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/startup.php
diff options
context:
space:
mode:
authorAndreas Fischer <bantu@phpbb.com>2015-01-29 00:06:00 +0100
committerAndreas Fischer <bantu@phpbb.com>2015-01-29 00:06:00 +0100
commit872caf805cae8608ef6500a2c1a90795487c6235 (patch)
tree68c8ae54008792fc6168718bfc7719dc6831589e /phpBB/includes/startup.php
parent8da3a6f117ee4830b9026490c348347e7f8cecff (diff)
parent74950559074d738733ac1258b07912f9ca14203a (diff)
downloadforums-872caf805cae8608ef6500a2c1a90795487c6235.tar
forums-872caf805cae8608ef6500a2c1a90795487c6235.tar.gz
forums-872caf805cae8608ef6500a2c1a90795487c6235.tar.bz2
forums-872caf805cae8608ef6500a2c1a90795487c6235.tar.xz
forums-872caf805cae8608ef6500a2c1a90795487c6235.zip
Merge pull request #3348 from bantu/ticket/13549
[ticket/13549] Do not exit when ORIG_PATH_INFO just contains SCRIPT_NAME... * bantu/ticket/13549: [ticket/13549] Do not exit when ORIG_PATH_INFO just contains SCRIPT_NAME.
Diffstat (limited to 'phpBB/includes/startup.php')
-rw-r--r--phpBB/includes/startup.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/includes/startup.php b/phpBB/includes/startup.php
index 92639fc5bd..9bbbf4fd4c 100644
--- a/phpBB/includes/startup.php
+++ b/phpBB/includes/startup.php
@@ -105,7 +105,7 @@ function deregister_globals()
function phpbb_has_trailing_path($phpEx)
{
// Check if path_info is being used
- if (!empty($_SERVER['PATH_INFO']) || !empty($_SERVER['ORIG_PATH_INFO']))
+ if (!empty($_SERVER['PATH_INFO']) || (!empty($_SERVER['ORIG_PATH_INFO']) && $_SERVER['SCRIPT_NAME'] != $_SERVER['ORIG_PATH_INFO']))
{
return true;
}