summaryrefslogtreecommitdiffstats
path: root/apps/files/ajax/upload.php
diff options
context:
space:
mode:
authorLukas Reschke <lukas@owncloud.com>2015-01-13 17:40:28 +0100
committerLukas Reschke <lukas@owncloud.com>2015-01-13 17:43:36 +0100
commit3ff3f641d63d6cbd9efe9bb3fd2eb1476369f408 (patch)
tree1a901375c1919b8fc4dd7606b5567484ca330c27 /apps/files/ajax/upload.php
parentba8c050d2b827804d0c860be19591c9d35fd0adf (diff)
downloadnextcloud-server-3ff3f641d63d6cbd9efe9bb3fd2eb1476369f408.tar.gz
nextcloud-server-3ff3f641d63d6cbd9efe9bb3fd2eb1476369f408.zip
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.
Diffstat (limited to 'apps/files/ajax/upload.php')
-rw-r--r--apps/files/ajax/upload.php4
1 files changed, 2 insertions, 2 deletions
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