mirror of
https://github.com/nextcloud/server.git
synced 2026-04-15 22:11:17 -04:00
fixed var name, $filename should be $foldername
This commit is contained in:
parent
48ccfa42d3
commit
bb07c20bf4
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