From 3ff3f641d63d6cbd9efe9bb3fd2eb1476369f408 Mon Sep 17 00:00:00 2001 From: Lukas Reschke Date: Tue, 13 Jan 2015 17:40:28 +0100 Subject: 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. --- apps/files/ajax/upload.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'apps/files/ajax/upload.php') diff --git a/apps/files/ajax/upload.php b/apps/files/ajax/upload.php index 7bf6c40e87c..88375f82acb 100644 --- a/apps/files/ajax/upload.php +++ b/apps/files/ajax/upload.php @@ -132,9 +132,9 @@ if (strpos($dir, '..') === false) { // $path needs to be normalized - this failed within drag'n'drop upload to a sub-folder if ($resolution === 'autorename') { // append a number in brackets like 'filename (2).ext' - $target = OCP\Files::buildNotExistingFileName(stripslashes($dir . $relativePath), $files['name'][$i]); + $target = OCP\Files::buildNotExistingFileName($dir . $relativePath, $files['name'][$i]); } else { - $target = \OC\Files\Filesystem::normalizePath(stripslashes($dir . $relativePath).'/'.$files['name'][$i]); + $target = \OC\Files\Filesystem::normalizePath($dir . $relativePath.'/'.$files['name'][$i]); } // relative dir to return to the client -- cgit v1.2.3