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