mirror of
https://github.com/getgrav/grav.git
synced 2025-02-20 19:56:53 +01:00
Regression: Ajax error in ngnix (#1244)
This commit is contained in:
parent
92afba0e28
commit
f37c08f341
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user