Merge pull request #5970 from owncloud/extstorage-webdavdotdirfix

Fixed path normalization to prevent dot dirs
This commit is contained in:
Vincent Petry 2013-11-21 09:01:47 -08:00
commit 3b48d23478
1 changed files with 3 additions and 5 deletions

View File

@ -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) {