Skip to content
Snippets Groups Projects
Commit 3b48d234 authored by Vincent Petry's avatar Vincent Petry
Browse files

Merge pull request #5970 from owncloud/extstorage-webdavdotdirfix

Fixed path normalization to prevent dot dirs
parents 4a2f9636 39cbdca4
No related branches found
No related tags found
No related merge requests found
......@@ -323,11 +323,9 @@ class DAV extends \OC\Files\Storage\Common{
}
public function cleanPath($path) {
if ( ! $path || $path[0]=='/') {
$path = \OC\Files\Filesystem::normalizePath($path);
// remove leading slash
return substr($path, 1);
} else {
return $path;
}
}
private function simpleResponse($method, $path, $body, $expected) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment