Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

A better fix for issue #2711. Allows url to be unset from request arr…

…ay regardless of this->base context
  • Loading branch information...
commit a69aeb67c1be5264e046c551148499d4611efd89 1 parent a9d7792
@paddythenerd paddythenerd authored
Showing with 3 additions and 2 deletions.
  1. +3 −2 lib/Cake/Network/CakeRequest.php
View
5 lib/Cake/Network/CakeRequest.php
@@ -207,8 +207,9 @@ protected function _processGet() {
$query = $_GET;
}
- unset($query['/' . str_replace('.', '_', urldecode($this->url))]);
- unset($query[$this->base . '/' . str_replace('.', '_', urldecode($this->url))]);
+ $unsetUrl = '/' . str_replace('.', '_', urldecode($this->url));
+ unset($query[$unsetUrl]);
+ unset($query[$this->base . $unsetUrl]);
if (strpos($this->url, '?') !== false) {
list(, $querystr) = explode('?', $this->url);
parse_str($querystr, $queryArgs);
Please sign in to comment.
Something went wrong with that request. Please try again.