add additional check if we have a valid uid and filename
This commit is contained in:
parent
42d8ef5a0e
commit
717b480a2e
|
@ -321,6 +321,10 @@ class Storage {
|
|||
// add expected leading slash
|
||||
$file = '/' . ltrim($file, '/');
|
||||
list($uid, $filename) = self::getUidAndFilename($file);
|
||||
if ($uid === null || trim($filename, '/') === '') {
|
||||
return false;
|
||||
}
|
||||
|
||||
$users_view = new View('/'.$uid);
|
||||
$files_view = new View('/'. User::getUser().'/files');
|
||||
$versionCreated = false;
|
||||
|
|
Loading…
Reference in New Issue