Merge pull request #8391 from owncloud/router-parameter-sorting
Preserve keys when sorting parameters when generatings urls
This commit is contained in:
commit
11404b2b12
1 changed files with 1 additions and 1 deletions
|
@ -31,7 +31,7 @@ class CachingRouter extends Router {
|
|||
* @return string
|
||||
*/
|
||||
public function generate($name, $parameters = array(), $absolute = false) {
|
||||
sort($parameters);
|
||||
asort($parameters);
|
||||
$key = $this->context->getHost() . '#' . $this->context->getBaseUrl() . $name . json_encode($parameters) . intval($absolute);
|
||||
if ($this->cache->hasKey($key)) {
|
||||
return $this->cache->get($key);
|
||||
|
|
Loading…
Reference in a new issue