diff options
Diffstat (limited to 'includes/bootstrap.inc')
-rw-r--r-- | includes/bootstrap.inc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/includes/bootstrap.inc b/includes/bootstrap.inc index 5dd22249d..a5b2d1afd 100644 --- a/includes/bootstrap.inc +++ b/includes/bootstrap.inc @@ -2188,6 +2188,11 @@ function request_path() { $path = ''; } + // Under certain conditions Apache's RewriteRule directive prepends the value + // assigned to $_GET['q'] with a slash. Moreover we can always have a trailing + // slash in place, hence we need to normalize $_GET['q']. + $path = trim($path, '/'); + return $path; } |