mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
Merge pull request #528 from vantienvnn/2.0
CakeRequest::here explicitly using & as a query string separator to overcome issue in some badly configured 5.3 servers
This commit is contained in:
commit
2840dc74d3
1 changed files with 1 additions and 1 deletions
|
@ -547,7 +547,7 @@ class CakeRequest implements ArrayAccess {
|
||||||
public function here($base = true) {
|
public function here($base = true) {
|
||||||
$url = $this->here;
|
$url = $this->here;
|
||||||
if (!empty($this->query)) {
|
if (!empty($this->query)) {
|
||||||
$url .= '?' . http_build_query($this->query);
|
$url .= '?' . http_build_query($this->query, null, '&');
|
||||||
}
|
}
|
||||||
if (!$base) {
|
if (!$base) {
|
||||||
$url = preg_replace('/^' . preg_quote($this->base, '/') . '/', '', $url, 1);
|
$url = preg_replace('/^' . preg_quote($this->base, '/') . '/', '', $url, 1);
|
||||||
|
|
Loading…
Reference in a new issue