summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2015-01-19 14:47:34 +0100
committerThomas Müller <thomas.mueller@tmit.eu>2015-01-19 14:47:34 +0100
commit1810ea2d33907b85523d3abb278f5415e3fd3584 (patch)
tree2076af3611f868efe56c544125be24eebd7157b0
parentca442dfc97d5123ea78a3dae48f71566063724f7 (diff)
parent003fc183a23ca74b7c6ccaf7dd9096b8b92ebc1f (diff)
downloadnextcloud-server-1810ea2d33907b85523d3abb278f5415e3fd3584.tar.gz
nextcloud-server-1810ea2d33907b85523d3abb278f5415e3fd3584.zip
Merge pull request #13461 from owncloud/remove-strip-slashes
Remove stripslashes() from newfolder.php
-rw-r--r--apps/files/ajax/newfolder.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/apps/files/ajax/newfolder.php b/apps/files/ajax/newfolder.php
index 3ad64021cfe..fab230717de 100644
--- a/apps/files/ajax/newfolder.php
+++ b/apps/files/ajax/newfolder.php
@@ -39,8 +39,7 @@ if (!\OC\Files\Filesystem::file_exists($dir . '/')) {
exit();
}
-//TODO why is stripslashes used on foldername here but not in newfile.php?
-$target = $dir . '/' . stripslashes($foldername);
+$target = $dir . '/' . $foldername;
if (\OC\Files\Filesystem::file_exists($target)) {
$result['data'] = array('message' => $l10n->t(