aboutsummaryrefslogtreecommitdiffstats
path: root/files/ajax/newfolder.php
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2012-03-07 21:43:44 +0100
committerRobin Appelman <icewind@owncloud.com>2012-03-07 21:43:44 +0100
commit018f0c4b72d9d2ca1c27c4c543a805b227745beb (patch)
tree8d4bc4d73f576331a8b8f6ffc55b6a141b8d54c1 /files/ajax/newfolder.php
parentcf5d63f0abc2b4537098962ad5051180861f965b (diff)
downloadnextcloud-server-018f0c4b72d9d2ca1c27c4c543a805b227745beb.tar.gz
nextcloud-server-018f0c4b72d9d2ca1c27c4c543a805b227745beb.zip
add option to add file from url
Diffstat (limited to 'files/ajax/newfolder.php')
-rw-r--r--files/ajax/newfolder.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/files/ajax/newfolder.php b/files/ajax/newfolder.php
index 6db045c4e17..228e369fbef 100644
--- a/files/ajax/newfolder.php
+++ b/files/ajax/newfolder.php
@@ -6,8 +6,8 @@ require_once('../../lib/base.php');
OC_JSON::checkLoggedIn();
// Get the params
-$dir = isset( $_GET['dir'] ) ? stripslashes($_GET['dir']) : '';
-$foldername = isset( $_GET['foldername'] ) ? stripslashes($_GET['foldername']) : '';
+$dir = isset( $_POST['dir'] ) ? stripslashes($_POST['dir']) : '';
+$foldername = isset( $_POST['foldername'] ) ? stripslashes($_POST['foldername']) : '';
if(trim($foldername) == '') {
OC_JSON::error(array("data" => array( "message" => "Empty Foldername" )));