diff options
Diffstat (limited to 'files/ajax/newfolder.php')
-rw-r--r-- | files/ajax/newfolder.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/files/ajax/newfolder.php b/files/ajax/newfolder.php index 6966e912c56..d244fb7be19 100644 --- a/files/ajax/newfolder.php +++ b/files/ajax/newfolder.php @@ -9,7 +9,7 @@ OC_JSON::checkLoggedIn(); $dir = isset( $_GET['dir'] ) ? $_GET['dir'] : ''; $foldername = isset( $_GET['foldername'] ) ? $_GET['foldername'] : ''; -if($foldername == '') { +if(trim($foldername) == '') { OC_JSON::error(array("data" => array( "message" => "Empty Foldername" ))); exit(); } |