Merge pull request #13461 from owncloud/remove-strip-slashes
Remove stripslashes() from newfolder.php
This commit is contained in:
commit
1810ea2d33
1 changed files with 1 additions and 2 deletions
|
@ -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(
|
||||||
|
|
Loading…
Reference in a new issue