summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing
diff options
context:
space:
mode:
authorLukas Reschke <lukas@owncloud.com>2016-02-29 21:48:23 +0100
committerLukas Reschke <lukas@owncloud.com>2016-03-01 07:01:51 +0100
commit74e47da883dcc14980c63268e58d27c2f1c7e5ac (patch)
tree3cce5da2304416630d8cd4962af3a2d48a972426 /apps/files_sharing
parent080a62231e6575d7963d5c251275cca741133d2f (diff)
downloadnextcloud-server-74e47da883dcc14980c63268e58d27c2f1c7e5ac.tar.gz
nextcloud-server-74e47da883dcc14980c63268e58d27c2f1c7e5ac.zip
Add missing trailing slash
Diffstat (limited to 'apps/files_sharing')
-rw-r--r--apps/files_sharing/lib/controllers/externalsharescontroller.php4
-rw-r--r--apps/files_sharing/lib/external/storage.php2
2 files changed, 3 insertions, 3 deletions
diff --git a/apps/files_sharing/lib/controllers/externalsharescontroller.php b/apps/files_sharing/lib/controllers/externalsharescontroller.php
index 4b921f6fae8..be65a490393 100644
--- a/apps/files_sharing/lib/controllers/externalsharescontroller.php
+++ b/apps/files_sharing/lib/controllers/externalsharescontroller.php
@@ -130,13 +130,13 @@ class ExternalSharesController extends Controller {
*/
public function testRemote($remote) {
if (
- $this->testUrl('https://' . $remote . '/ocs-provider') ||
+ $this->testUrl('https://' . $remote . '/ocs-provider/') ||
$this->testUrl('https://' . $remote . '/ocs-provider/index.php') ||
$this->testUrl('https://' . $remote . '/status.php', true)
) {
return new DataResponse('https');
} elseif (
- $this->testUrl('http://' . $remote . '/ocs-provider') ||
+ $this->testUrl('http://' . $remote . '/ocs-provider/') ||
$this->testUrl('http://' . $remote . '/ocs-provider/index.php') ||
$this->testUrl('http://' . $remote . '/status.php', true)
) {
diff --git a/apps/files_sharing/lib/external/storage.php b/apps/files_sharing/lib/external/storage.php
index 7f54a955da2..c23b273c2eb 100644
--- a/apps/files_sharing/lib/external/storage.php
+++ b/apps/files_sharing/lib/external/storage.php
@@ -225,7 +225,7 @@ class Storage extends DAV implements ISharedStorage {
protected function testRemote() {
try {
return $this->testRemoteUrl($this->remote . '/ocs-provider/index.php')
- || $this->testRemoteUrl($this->remote . '/ocs-provider')
+ || $this->testRemoteUrl($this->remote . '/ocs-provider/')
|| $this->testRemoteUrl($this->remote . '/status.php');
} catch (\Exception $e) {
return false;