diff options
author | Björn Schießle <bjoern@schiessle.org> | 2015-11-24 13:07:40 +0100 |
---|---|---|
committer | Björn Schießle <bjoern@schiessle.org> | 2015-11-24 13:15:55 +0100 |
commit | 9546b21d7ead7bae6ce942019de86f30a1ceddd6 (patch) | |
tree | fa2c11fcb3dd42fadd7bd222a7b9b94e1b59f55a /apps/federation/lib | |
parent | 964fa1fce3bc7734b6f7435f730e3b7394fc1cbf (diff) | |
download | nextcloud-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.php | 1 |
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( |