Merge pull request #5970 from owncloud/extstorage-webdavdotdirfix
Fixed path normalization to prevent dot dirs
This commit is contained in:
commit
3b48d23478
|
@ -323,11 +323,9 @@ class DAV extends \OC\Files\Storage\Common{
|
||||||
}
|
}
|
||||||
|
|
||||||
public function cleanPath($path) {
|
public function cleanPath($path) {
|
||||||
if ( ! $path || $path[0]=='/') {
|
$path = \OC\Files\Filesystem::normalizePath($path);
|
||||||
return substr($path, 1);
|
// remove leading slash
|
||||||
} else {
|
return substr($path, 1);
|
||||||
return $path;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private function simpleResponse($method, $path, $body, $expected) {
|
private function simpleResponse($method, $path, $body, $expected) {
|
||||||
|
|
Loading…
Reference in New Issue