This commit is contained in:
vantienvnn 2012-02-24 21:35:50 +07:00
parent 420a2f56df
commit c0b2d8ad9d

View file

@ -520,7 +520,7 @@ class CakeRequest implements ArrayAccess {
public function here($base = true) {
$url = $this->here;
if (!empty($this->query)) {
$url .= '?' . http_build_query($this->query);
$url .= '?' . http_build_query($this->query, null, '&');
}
if (!$base) {
$url = preg_replace('/^' . preg_quote($this->base, '/') . '/', '', $url, 1);