Skip to content

Commit

Permalink
In request_uri, remove dependencies with global environment vars and …
Browse files Browse the repository at this point in the history
…use exclusively given $env for access to the $_GET array
  • Loading branch information
Fabrice Luraine committed Mar 15, 2010
1 parent b1c6484 commit aff3ff8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/limonade.php
Expand Up @@ -1010,7 +1010,7 @@ function request_uri($env = null)
if(strpos($param, '=') > 0)
{
list($k, $v) = explode('=', $param);
$_GET[$k] = $v;
$env['GET'][$k] = $v;
}
}
}
Expand All @@ -1020,7 +1020,7 @@ function request_uri($env = null)
elseif (trim($query_string, '/') != '')
{
$uri = $query_string;
$get = $_GET;
$get = $env['GET'];
if(count($get) > 0)
{
# exclude GET params
Expand Down

0 comments on commit aff3ff8

Please sign in to comment.