Permalink
Browse files

Fixing request_uri for all empty paths cases

  • Loading branch information...
Fabrice Luraine
Fabrice Luraine committed Jun 5, 2009
1 parent 81daf05 commit 9bb3689e1772a42b642bc68b4d4a72d4290f3f10
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/limonade.php
View
@@ -839,7 +839,7 @@ function request_uri($env = null)
}
elseif(array_key_exists('REQUEST_URI', $env['SERVER']) && !empty($env['SERVER']['REQUEST_URI']))
{
$request_uri = rtrim($env['SERVER']['REQUEST_URI'], '?/');
$request_uri = rtrim($env['SERVER']['REQUEST_URI'], '?/').'/';
$base_path = $env['SERVER']['SCRIPT_NAME'];
if($request_uri."index.php" == $base_path) $request_uri .= "index.php";

0 comments on commit 9bb3689

Please sign in to comment.