summaryrefslogtreecommitdiffstats
path: root/lib/private/route
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2014-04-01 15:43:27 +0200
committerRobin Appelman <icewind@owncloud.com>2014-04-01 15:43:27 +0200
commit9c8596e95b81f9d5ddcd7132ac0134b0ffed67e5 (patch)
tree4c930f31108cb42107758f78ee314da89915c527 /lib/private/route
parent65e3f634000a2142f412b85d0443f241bb64a9ab (diff)
downloadnextcloud-server-9c8596e95b81f9d5ddcd7132ac0134b0ffed67e5.tar.gz
nextcloud-server-9c8596e95b81f9d5ddcd7132ac0134b0ffed67e5.zip
Keep cached urls with different hostnames or baseurls seperate
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 ad25372391f..63bfd3e0539 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) {
- $key = $name . json_encode($parameters) . $absolute;
+ $key = $this->context->getHost() . $this->context->getBaseUrl() . $name . json_encode($parameters) . $absolute;
if ($this->cache->hasKey($key)) {
return $this->cache->get($key);
} else {