Skip to content
Snippets Groups Projects
Commit d7666d9d authored by Joas Schilling's avatar Joas Schilling
Browse files

Remove doubled slash between folder and path

parent e9cdd684
No related branches found
No related tags found
No related merge requests found
...@@ -114,7 +114,7 @@ class Updater { ...@@ -114,7 +114,7 @@ class Updater {
/** /**
* get file owner and path * get file owner and path
* @param string $filename * @param string $filename
* @return string[] with the oweners uid and the owners path * @return string[] with the owner's uid and the owner's path
*/ */
private static function getUidAndFilename($filename) { private static function getUidAndFilename($filename) {
...@@ -124,12 +124,12 @@ class Updater { ...@@ -124,12 +124,12 @@ class Updater {
if ($uid != \OCP\User::getUser()) { if ($uid != \OCP\User::getUser()) {
$info = \OC\Files\Filesystem::getFileInfo($filename); $info = \OC\Files\Filesystem::getFileInfo($filename);
if (!$info) { if (!$info) {
return array($uid, '/files/' . $filename); return array($uid, '/files' . $filename);
} }
$ownerView = new \OC\Files\View('/' . $uid . '/files'); $ownerView = new \OC\Files\View('/' . $uid . '/files');
$filename = $ownerView->getPath($info['fileid']); $filename = $ownerView->getPath($info['fileid']);
} }
return array($uid, '/files/' . $filename); return array($uid, '/files' . $filename);
} }
/** /**
...@@ -139,8 +139,7 @@ class Updater { ...@@ -139,8 +139,7 @@ class Updater {
* @param string $time * @param string $time
*/ */
static public function correctFolder($path, $time) { static public function correctFolder($path, $time) {
if ($path !== '' && $path !== '/') { if ($path !== '' && $path !== '/' && $path !== '\\') {
list($owner, $realPath) = self::getUidAndFilename(dirname($path)); list($owner, $realPath) = self::getUidAndFilename(dirname($path));
/** /**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment