mirror of
https://github.com/getgrav/grav.git
synced 2026-03-04 11:31:43 +01:00
Regression: Ajax error in ngnix (#1244)
This commit is contained in:
@@ -1,3 +1,9 @@
|
||||
# v1.3.6
|
||||
## mm/dd/2017
|
||||
|
||||
1. [](#bugfix)
|
||||
* Regression: Ajax error in ngnix (#1244)
|
||||
|
||||
# v1.3.5
|
||||
## 10/11/2017
|
||||
|
||||
|
||||
@@ -90,6 +90,13 @@ class Uri
|
||||
$this->query = parse_url('http://example.com' . $request_uri, PHP_URL_QUERY);
|
||||
}
|
||||
|
||||
// Support ngnix routes.
|
||||
if (strpos($this->query, '_url=') === 0) {
|
||||
parse_str($this->query, $query);
|
||||
unset($query['_url']);
|
||||
$this->query = http_build_query($query);
|
||||
}
|
||||
|
||||
// Build fragment.
|
||||
$this->fragment = null;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user