Dont return false for internalPath

This commit is contained in:
Robin Appelman 2014-05-16 12:30:08 +02:00 committed by Bjoern Schiessle
parent a900c7aa94
commit 21ced89beb
1 changed files with 3 additions and 0 deletions

View File

@ -355,6 +355,9 @@ class DAV extends \OC\Files\Storage\Common {
* @param string $path
*/
public function cleanPath($path) {
if ($path === ""){
return $path;
}
$path = \OC\Files\Filesystem::normalizePath($path);
// remove leading slash
return substr($path, 1);