diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2014-04-30 15:10:36 +0200 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2014-04-30 15:10:36 +0200 |
commit | 11404b2b12a47b519ce6b3d0606ced8ad2649769 (patch) | |
tree | 1b1129d8f3506c8cd9792d3c8a1cfb72af0440ae | |
parent | 38989c3458b39a0176071607ce96578125ecb367 (diff) | |
parent | 77e6278d093066bdf2e73707ec0639f3b1c3050a (diff) | |
download | nextcloud-server-11404b2b12a47b519ce6b3d0606ced8ad2649769.tar.gz nextcloud-server-11404b2b12a47b519ce6b3d0606ced8ad2649769.zip |
Merge pull request #8391 from owncloud/router-parameter-sorting
Preserve keys when sorting parameters when generatings urls
-rw-r--r-- | lib/private/route/cachingrouter.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/route/cachingrouter.php b/lib/private/route/cachingrouter.php index 6412ceb0418..7a21c523435 100644 --- a/lib/private/route/cachingrouter.php +++ b/lib/private/route/cachingrouter.php @@ -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); |