summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/lib/Controller
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2020-03-13 11:11:00 +0100
committerJoas Schilling <coding@schilljs.com>2020-03-13 11:11:00 +0100
commit8db32805be6dd9cddc9c5ed244b461da9408d62a (patch)
tree09949941a8c62dbfb8d3784e80e54262edea0eab /apps/files_sharing/lib/Controller
parent3930ab8e8a72190933931b256aea78c3cd239953 (diff)
downloadnextcloud-server-8db32805be6dd9cddc9c5ed244b461da9408d62a.tar.gz
nextcloud-server-8db32805be6dd9cddc9c5ed244b461da9408d62a.zip
Fix willReturnOnConsecutiveCalls
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'apps/files_sharing/lib/Controller')
-rw-r--r--apps/files_sharing/lib/Controller/ExternalSharesController.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/apps/files_sharing/lib/Controller/ExternalSharesController.php b/apps/files_sharing/lib/Controller/ExternalSharesController.php
index f903871ffd6..122ad0f7cf4 100644
--- a/apps/files_sharing/lib/Controller/ExternalSharesController.php
+++ b/apps/files_sharing/lib/Controller/ExternalSharesController.php
@@ -133,6 +133,7 @@ class ExternalSharesController extends Controller {
if (strpos($remote, '#') !== false || strpos($remote, '?') !== false) {
return new DataResponse(false);
}
+
if (
$this->testUrl('https://' . $remote . '/ocs-provider/') ||
$this->testUrl('https://' . $remote . '/ocs-provider/index.php') ||