Skip to content
Snippets Groups Projects
Commit 74e47da8 authored by Lukas Reschke's avatar Lukas Reschke
Browse files

Add missing trailing slash

parent 080a6223
Branches
No related tags found
No related merge requests found
...@@ -130,13 +130,13 @@ class ExternalSharesController extends Controller { ...@@ -130,13 +130,13 @@ class ExternalSharesController extends Controller {
*/ */
public function testRemote($remote) { public function testRemote($remote) {
if ( 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 . '/ocs-provider/index.php') ||
$this->testUrl('https://' . $remote . '/status.php', true) $this->testUrl('https://' . $remote . '/status.php', true)
) { ) {
return new DataResponse('https'); return new DataResponse('https');
} elseif ( } 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 . '/ocs-provider/index.php') ||
$this->testUrl('http://' . $remote . '/status.php', true) $this->testUrl('http://' . $remote . '/status.php', true)
) { ) {
......
...@@ -225,7 +225,7 @@ class Storage extends DAV implements ISharedStorage { ...@@ -225,7 +225,7 @@ class Storage extends DAV implements ISharedStorage {
protected function testRemote() { protected function testRemote() {
try { try {
return $this->testRemoteUrl($this->remote . '/ocs-provider/index.php') 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'); || $this->testRemoteUrl($this->remote . '/status.php');
} catch (\Exception $e) { } catch (\Exception $e) {
return false; return false;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment