From d91d2178b8677c30b2ef4b841977ecff4bd97728 Mon Sep 17 00:00:00 2001 From: Michael Gapczynski Date: Fri, 8 Jul 2011 14:58:35 -0400 Subject: [PATCH] Fix unshare() to remove database entries of files within a shared folder --- apps/files_sharing/lib_share.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/files_sharing/lib_share.php b/apps/files_sharing/lib_share.php index e1501257fba..795004606ee 100644 --- a/apps/files_sharing/lib_share.php +++ b/apps/files_sharing/lib_share.php @@ -97,7 +97,7 @@ class OC_SHARE { * @param array $uid_shared_with */ public static function unshare($source, $uid_shared_with) { - $query = OC_DB::prepare("DELETE FROM *PREFIX*sharing WHERE source = ? AND uid_shared_with = ? AND uid_owner = ?"); + $query = OC_DB::prepare("DELETE FROM *PREFIX*sharing WHERE source COLLATE latin1_bin LIKE ? AND uid_shared_with = ? AND uid_owner = ?"); foreach ($uid_shared_with as $uid) { $query->execute(array($source, $uid, $_SESSION['user_id'])); }