summaryrefslogtreecommitdiffstats
path: root/apps/federation/lib
diff options
context:
space:
mode:
authorBjörn Schießle <bjoern@schiessle.org>2015-11-24 13:07:40 +0100
committerBjörn Schießle <bjoern@schiessle.org>2015-11-24 13:15:55 +0100
commit9546b21d7ead7bae6ce942019de86f30a1ceddd6 (patch)
treefa2c11fcb3dd42fadd7bd222a7b9b94e1b59f55a /apps/federation/lib
parent964fa1fce3bc7734b6f7435f730e3b7394fc1cbf (diff)
downloadnextcloud-server-9546b21d7ead7bae6ce942019de86f30a1ceddd6.tar.gz
nextcloud-server-9546b21d7ead7bae6ce942019de86f30a1ceddd6.zip
always store server url without a trailing slash
Diffstat (limited to 'apps/federation/lib')
-rw-r--r--apps/federation/lib/dbhandler.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/apps/federation/lib/dbhandler.php b/apps/federation/lib/dbhandler.php
index 61ba5c87cfd..7606593f780 100644
--- a/apps/federation/lib/dbhandler.php
+++ b/apps/federation/lib/dbhandler.php
@@ -68,6 +68,7 @@ class DbHandler {
*/
public function addServer($url) {
$hash = $this->hash($url);
+ $url = rtrim($url, '/');
$query = $this->connection->getQueryBuilder();
$query->insert($this->dbTable)
->values(