diff --git a/apps/files/ajax/newfolder.php b/apps/files/ajax/newfolder.php index 0668a6191f..c5c37914c6 100644 --- a/apps/files/ajax/newfolder.php +++ b/apps/files/ajax/newfolder.php @@ -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(); }