Add missing trailing slash
This commit is contained in:
parent
080a62231e
commit
74e47da883
2 changed files with 3 additions and 3 deletions
|
@ -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)
|
||||
) {
|
||||
|
|
2
apps/files_sharing/lib/external/storage.php
vendored
2
apps/files_sharing/lib/external/storage.php
vendored
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue