mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-28 02:43:22 +01:00
* Filemanager/WebDAV: add (missing) trailing slash in mount URL for WebDAV, as NextCloud requires it
This commit is contained in:
parent
bfd37dca59
commit
14efc30663
@ -120,7 +120,7 @@ class filemanager_admin extends filemanager_ui
|
||||
{
|
||||
$path = @key($content['mounts']['disable']);
|
||||
}
|
||||
// set umounted url for a (changed) remount
|
||||
// set unmounted url for a (changed) remount
|
||||
$mounts = Vfs::mount();
|
||||
$content['mounts']['path'] = $path;
|
||||
$content['mounts']['url'] = Vfs::parse_url($mounts[$path]);
|
||||
@ -170,6 +170,12 @@ class filemanager_admin extends filemanager_ui
|
||||
$url .= $content['mounts']['url']['host'] ?: 'default';
|
||||
$url .= $content['mounts']['url']['path'] ?: $path;
|
||||
|
||||
// WebDAV needs a trailing slash and while EGroupware redirects, NextCloud e.g. gives an error
|
||||
if (preg_match('#^webdavs?://#', $url) && !substr($url, -1) !== '/')
|
||||
{
|
||||
$url .= '/';
|
||||
}
|
||||
|
||||
if (($content['mounts']['enable'] || substr($content['mounts']['url']['scheme'], 0, 8) === 'stylite.') && !$this->versioning)
|
||||
{
|
||||
throw new Api\Exception\WrongUserinput(lang('Versioning requires EGroupware EPL'));
|
||||
|
Loading…
Reference in New Issue
Block a user