]> source.dussan.org Git - nextcloud-server.git/commitdiff
Remove stripslashes() from newfolder.php
authorLukas Reschke <lukas@owncloud.com>
Mon, 19 Jan 2015 13:12:36 +0000 (14:12 +0100)
committerLukas Reschke <lukas@owncloud.com>
Mon, 19 Jan 2015 13:12:36 +0000 (14:12 +0100)
apps/files/ajax/newfolder.php

index 3ad64021cfe6028fc78678e360787e25e927fa9f..fab230717dedcaa9fe760bf4ed56e0d2707b7ad0 100644 (file)
@@ -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(