fixed var name, $filename should be $foldername
This commit is contained in:
parent
6ca2b49292
commit
c960e42a17
1 changed files with 1 additions and 1 deletions
|
@ -13,7 +13,7 @@ if(trim($foldername) == '') {
|
|||
OCP\JSON::error(array("data" => array( "message" => "Empty Foldername" )));
|
||||
exit();
|
||||
}
|
||||
if(strpos($filename,'/')!==false){
|
||||
if(strpos($foldername,'/')!==false){
|
||||
OCP\JSON::error(array("data" => array( "message" => "Invalid Foldername" )));
|
||||
exit();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue