Skip to content

Commit

Permalink
Unsetting url both with & w/o ->base to allow proper handling when ap…
Browse files Browse the repository at this point in the history
…p not hosted at server's DocumentRoot
  • Loading branch information
Patrick Barabe committed Feb 19, 2014
1 parent 4497bab commit a9d7792
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/Cake/Network/CakeRequest.php
Expand Up @@ -207,6 +207,7 @@ protected function _processGet() {
$query = $_GET;
}

unset($query['/' . str_replace('.', '_', urldecode($this->url))]);
unset($query[$this->base . '/' . str_replace('.', '_', urldecode($this->url))]);
if (strpos($this->url, '?') !== false) {
list(, $querystr) = explode('?', $this->url);
Expand Down

0 comments on commit a9d7792

Please sign in to comment.