aboutsummaryrefslogtreecommitdiffstats
path: root/include/section_init.inc.php
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--include/section_init.inc.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/section_init.inc.php b/include/section_init.inc.php
index 1d5949e63..806679e02 100644
--- a/include/section_init.inc.php
+++ b/include/section_init.inc.php
@@ -53,7 +53,10 @@
$page['section'] = 'categories';
-if ( isset($_SERVER["PATH_INFO"]) and !empty($_SERVER["PATH_INFO"]) )
+// some ISPs set PATH_INFO to empty string or to SCRIPT_FILENAME while in the
+// default apache implementation it is not set
+if ( $conf['question_mark_in_urls']==false and
+ isset($_SERVER["PATH_INFO"]) and !empty($_SERVER["PATH_INFO"]) )
{
$rewritten = $_SERVER["PATH_INFO"];
$rewritten = str_replace('//', '/', $rewritten);