We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 04c64fa + 6d0119b commit 4eee160Copy full SHA for 4eee160
lib/private/Files/Storage/DAV.php
@@ -116,7 +116,7 @@ public function __construct(array $parameters) {
116
// inject mock for testing
117
$this->certManager = \OC::$server->getCertificateManager();
118
}
119
- $this->root = $parameters['root'] ?? '/';
+ $this->root = rawurldecode($parameters['root'] ?? '/');
120
$this->root = '/' . ltrim($this->root, '/');
121
$this->root = rtrim($this->root, '/') . '/';
122
} else {
@@ -191,7 +191,7 @@ public function createBaseUri(): string {
191
if ($this->secure) {
192
$baseUri .= 's';
193
194
- $baseUri .= '://' . $this->host . $this->root;
+ $baseUri .= '://' . $this->host . $this->encodePath($this->root);
195
return $baseUri;
196
197
0 commit comments