mirror of
https://github.com/nextcloud/server.git
synced 2026-02-20 00:12:30 -05:00
Merge pull request #53729 from nextcloud/dav-external-url-encoded-root
This commit is contained in:
commit
4eee160c15
1 changed files with 2 additions and 2 deletions
|
|
@ -116,7 +116,7 @@ class DAV extends Common {
|
|||
// inject mock for testing
|
||||
$this->certManager = \OC::$server->getCertificateManager();
|
||||
}
|
||||
$this->root = $parameters['root'] ?? '/';
|
||||
$this->root = rawurldecode($parameters['root'] ?? '/');
|
||||
$this->root = '/' . ltrim($this->root, '/');
|
||||
$this->root = rtrim($this->root, '/') . '/';
|
||||
} else {
|
||||
|
|
@ -191,7 +191,7 @@ class DAV extends Common {
|
|||
if ($this->secure) {
|
||||
$baseUri .= 's';
|
||||
}
|
||||
$baseUri .= '://' . $this->host . $this->root;
|
||||
$baseUri .= '://' . $this->host . $this->encodePath($this->root);
|
||||
return $baseUri;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue