Skip to content

Commit

Permalink
Use rawurldecode() on the REQUEST_URI when using it in Request::insta…
Browse files Browse the repository at this point in the history
…nce, fixes #3001
  • Loading branch information
Woody Gilk committed Jun 25, 2010
1 parent 35a4e4b commit c6b92e6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions classes/kohana/request.php
Expand Up @@ -228,6 +228,9 @@ public static function instance( & $uri = TRUE)
{
// REQUEST_URI includes the query string, remove it
$uri = parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH);

// Decode the request URI
$uri = rawurldecode($uri);
}
elseif (isset($_SERVER['PHP_SELF']))
{
Expand Down

0 comments on commit c6b92e6

Please sign in to comment.