mirror of
https://github.com/nextcloud/server.git
synced 2024-07-25 22:04:58 +02:00
Preserve keys when sorting parameters when generatings urls
This commit is contained in:
parent
b95aa43a5d
commit
77e6278d09
@ -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 New Issue
Block a user