diff options
author | Michael Gapczynski <GapczynskiM@gmail.com> | 2011-12-23 12:28:44 -0500 |
---|---|---|
committer | Michael Gapczynski <GapczynskiM@gmail.com> | 2011-12-23 12:28:44 -0500 |
commit | 9bb004963b0ed205a01bfd7e09744263136d5b66 (patch) | |
tree | e2d38aa1b42a2eefcc9ae81ced8d5761b2bfd14d /files | |
parent | e1b9b65e4159bdd6e0ed81c8cd6b588f03b3a018 (diff) | |
download | nextcloud-server-9bb004963b0ed205a01bfd7e09744263136d5b66.tar.gz nextcloud-server-9bb004963b0ed205a01bfd7e09744263136d5b66.zip |
Fix whitespace folder name
Diffstat (limited to 'files')
-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(); } |