fixed var name, $filename should be $foldername

remotes/origin/stable4
Bjoern Schiessle 13 years ago
parent 48ccfa42d3
commit bb07c20bf4
  1. 2
      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();
}

Loading…
Cancel
Save