sanitize mountpoint

This commit is contained in:
Robin Appelman 2015-10-05 17:14:39 +02:00
parent 52c8b488cb
commit e468b38bd4
1 changed files with 1 additions and 1 deletions

View File

@ -50,7 +50,7 @@ class MountProvider implements IMountProvider {
public function getMount(IUser $user, $data, IStorageFactory $storageFactory) {
$data['manager'] = $this;
$mountPoint = '/' . $user->getUID() . '/files' . $data['mountpoint'];
$mountPoint = '/' . $user->getUID() . '/files/' . ltrim($data['mountpoint'], '/');
$data['mountpoint'] = $mountPoint;
$data['certificateManager'] = \OC::$server->getCertificateManager($user->getUID());
$managerProvider = $this->managerProvider;