aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files
diff options
context:
space:
mode:
authorBjoern Schiessle <schiessle@owncloud.com>2012-06-06 18:08:51 +0200
committerBjoern Schiessle <schiessle@owncloud.com>2012-06-06 18:08:51 +0200
commitc960e42a1723a3ddc1a703724a6863b3a2d5fa8e (patch)
treee4911ac532ed7854c873511a16f3e22ff7de9478 /apps/files
parent6ca2b49292b610febf1e867e41f220dfa4e74a1e (diff)
downloadnextcloud-server-c960e42a1723a3ddc1a703724a6863b3a2d5fa8e.tar.gz
nextcloud-server-c960e42a1723a3ddc1a703724a6863b3a2d5fa8e.zip
fixed var name, $filename should be $foldername
Diffstat (limited to 'apps/files')
-rw-r--r--apps/files/ajax/newfolder.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files/ajax/newfolder.php b/apps/files/ajax/newfolder.php
index 0668a6191f4..c5c37914c6a 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();
}