Skip to content

Commit

Permalink
Always parse query string, on the main request or on sub-requests
Browse files Browse the repository at this point in the history
Initial request will have the global $_GET re-applied in the `factory()`
method.
  • Loading branch information
enov committed Jul 21, 2016
1 parent 6f81f71 commit 91b3ec5
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions classes/Kohana/Request.php
Original file line number Diff line number Diff line change
Expand Up @@ -667,13 +667,9 @@ public function __construct($uri, $client_params = array(), $allow_external = TR
$split_uri = explode('?', $uri);
$uri = array_shift($split_uri);

// Initial request has global $_GET already applied
if (Request::$initial === NULL)
if ($split_uri)
{
if ($split_uri)
{
parse_str($split_uri[0], $this->_get);
}
parse_str($split_uri[0], $this->_get);
}

// Detect protocol (if present)
Expand Down

0 comments on commit 91b3ec5

Please sign in to comment.