Merge pull request #13461 from owncloud/remove-strip-slashes

Remove stripslashes() from newfolder.php
This commit is contained in:
Thomas Müller 2015-01-19 14:47:34 +01:00
commit 1810ea2d33

View file

@ -39,8 +39,7 @@ if (!\OC\Files\Filesystem::file_exists($dir . '/')) {
exit(); exit();
} }
//TODO why is stripslashes used on foldername here but not in newfile.php? $target = $dir . '/' . $foldername;
$target = $dir . '/' . stripslashes($foldername);
if (\OC\Files\Filesystem::file_exists($target)) { if (\OC\Files\Filesystem::file_exists($target)) {
$result['data'] = array('message' => $l10n->t( $result['data'] = array('message' => $l10n->t(