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) {
|
||||
if ( ! $path || $path[0]=='/') {
|
||||
return substr($path, 1);
|
||||
} else {
|
||||
return $path;
|
||||
}
|
||||
$path = \OC\Files\Filesystem::normalizePath($path);
|
||||
// remove leading slash
|
||||
return substr($path, 1);
|
||||
}
|
||||
|
||||
private function simpleResponse($method, $path, $body, $expected) {
|
||||
|
|
Loading…
Reference in New Issue