summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2014-04-30 15:10:36 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2014-04-30 15:10:36 +0200
commit11404b2b12a47b519ce6b3d0606ced8ad2649769 (patch)
tree1b1129d8f3506c8cd9792d3c8a1cfb72af0440ae
parent38989c3458b39a0176071607ce96578125ecb367 (diff)
parent77e6278d093066bdf2e73707ec0639f3b1c3050a (diff)
downloadnextcloud-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.php2
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);