[Pkg-owncloud-commits] [owncloud] 01/04: No need to strip slashes, json_decode handles that for us

David Prévot taffit at alioth.debian.org
Fri Nov 8 23:13:47 UTC 2013


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to annotated tag v4.5.11
in repository owncloud.

commit a6c5d2dc6b0b83531a14ca770e61eb8f4ba1e7b5
Author: Bart Visscher <bartv at thisnet.nl>
Date:   Fri Apr 19 13:45:40 2013 +0200

    No need to strip slashes, json_decode handles that for us
---
 apps/files/ajax/delete.php |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/apps/files/ajax/delete.php b/apps/files/ajax/delete.php
index 6532b76..5e00ea2 100644
--- a/apps/files/ajax/delete.php
+++ b/apps/files/ajax/delete.php
@@ -8,7 +8,7 @@ OCP\JSON::callCheck();
 
 // Get data
 $dir = stripslashes($_POST["dir"]);
-$files = isset($_POST["file"]) ? stripslashes($_POST["file"]) : stripslashes($_POST["files"]);
+$files = isset($_POST["file"]) ? $_POST["file"] : $_POST["files"];
 
 $files = json_decode($files);
 $filesWithError = '';

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git



More information about the Pkg-owncloud-commits mailing list