summaryrefslogtreecommitdiffstats
path: root/lib/private/route
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2014-04-29 11:55:19 +0200
committerRobin Appelman <icewind@owncloud.com>2014-04-29 11:55:19 +0200
commit77e6278d093066bdf2e73707ec0639f3b1c3050a (patch)
tree403be35f226f6c4f23adcb7aeb090f8e2b72a6ee /lib/private/route
parentb95aa43a5d1dac3e1ca8f3c55e050861d7a4938b (diff)
downloadnextcloud-server-77e6278d093066bdf2e73707ec0639f3b1c3050a.tar.gz
nextcloud-server-77e6278d093066bdf2e73707ec0639f3b1c3050a.zip
Preserve keys when sorting parameters when generatings urls
Diffstat (limited to 'lib/private/route')
-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);