summaryrefslogtreecommitdiffstats
path: root/lib/private/route
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2014-04-15 15:48:02 +0200
committerRobin Appelman <icewind@owncloud.com>2014-04-15 15:48:02 +0200
commit7f77b08098426801bfede696a88671efc1f82d83 (patch)
treee7f29998e880d2d2f7558fde55411602397f2d11 /lib/private/route
parent51fbf0bcbc2c3c68f7b4b36128304f4ab9df98e7 (diff)
downloadnextcloud-server-7f77b08098426801bfede696a88671efc1f82d83.tar.gz
nextcloud-server-7f77b08098426801bfede696a88671efc1f82d83.zip
Sort parameters and cast to int
Diffstat (limited to 'lib/private/route')
-rw-r--r--lib/private/route/cachingrouter.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/private/route/cachingrouter.php b/lib/private/route/cachingrouter.php
index 766c67c73a0..6412ceb0418 100644
--- a/lib/private/route/cachingrouter.php
+++ b/lib/private/route/cachingrouter.php
@@ -31,7 +31,8 @@ class CachingRouter extends Router {
* @return string
*/
public function generate($name, $parameters = array(), $absolute = false) {
- $key = $this->context->getHost() . '#' . $this->context->getBaseUrl() . $name . json_encode($parameters) . $absolute;
+ sort($parameters);
+ $key = $this->context->getHost() . '#' . $this->context->getBaseUrl() . $name . json_encode($parameters) . intval($absolute);
if ($this->cache->hasKey($key)) {
return $this->cache->get($key);
} else {