aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/ajax/newfolder.php
diff options
context:
space:
mode:
authorLukas Reschke <lukas@owncloud.com>2015-01-13 17:40:28 +0100
committerLukas Reschke <lukas@owncloud.com>2015-01-13 17:43:36 +0100
commit3ff3f641d63d6cbd9efe9bb3fd2eb1476369f408 (patch)
tree1a901375c1919b8fc4dd7606b5567484ca330c27 /apps/files/ajax/newfolder.php
parentba8c050d2b827804d0c860be19591c9d35fd0adf (diff)
downloadnextcloud-server-3ff3f641d63d6cbd9efe9bb3fd2eb1476369f408.tar.gz
nextcloud-server-3ff3f641d63d6cbd9efe9bb3fd2eb1476369f408.zip
Get rid of `stripslashes()`
This conversions are actually totally unneeded and probably left-overs from ages where the safe_mode was still a valid thing.
Diffstat (limited to 'apps/files/ajax/newfolder.php')
-rw-r--r--apps/files/ajax/newfolder.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/files/ajax/newfolder.php b/apps/files/ajax/newfolder.php
index ea7a10c2ab9..3ad64021cfe 100644
--- a/apps/files/ajax/newfolder.php
+++ b/apps/files/ajax/newfolder.php
@@ -8,8 +8,8 @@ OCP\JSON::callCheck();
\OC::$server->getSession()->close();
// Get the params
-$dir = isset( $_POST['dir'] ) ? stripslashes($_POST['dir']) : '';
-$foldername = isset( $_POST['foldername'] ) ? stripslashes($_POST['foldername']) : '';
+$dir = isset($_POST['dir']) ? $_POST['dir'] : '';
+$foldername = isset($_POST['foldername']) ? $_POST['foldername'] : '';
$l10n = \OC::$server->getL10N('files');