summaryrefslogtreecommitdiffstats
path: root/files
diff options
context:
space:
mode:
authorMichael Gapczynski <GapczynskiM@gmail.com>2011-12-23 12:28:44 -0500
committerMichael Gapczynski <GapczynskiM@gmail.com>2011-12-23 12:28:44 -0500
commit9bb004963b0ed205a01bfd7e09744263136d5b66 (patch)
treee2d38aa1b42a2eefcc9ae81ced8d5761b2bfd14d /files
parente1b9b65e4159bdd6e0ed81c8cd6b588f03b3a018 (diff)
downloadnextcloud-server-9bb004963b0ed205a01bfd7e09744263136d5b66.tar.gz
nextcloud-server-9bb004963b0ed205a01bfd7e09744263136d5b66.zip
Fix whitespace folder name
Diffstat (limited to 'files')
-rw-r--r--files/ajax/newfolder.php2
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();
}