From 003fc183a23ca74b7c6ccaf7dd9096b8b92ebc1f Mon Sep 17 00:00:00 2001
From: Lukas Reschke <lukas@owncloud.com>
Date: Mon, 19 Jan 2015 14:12:36 +0100
Subject: [PATCH] Remove stripslashes() from newfolder.php

---
 apps/files/ajax/newfolder.php | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/apps/files/ajax/newfolder.php b/apps/files/ajax/newfolder.php
index 3ad64021cfe..fab230717de 100644
--- a/apps/files/ajax/newfolder.php
+++ b/apps/files/ajax/newfolder.php
@@ -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(
-- 
GitLab