Fix unshare() to remove database entries of files within a shared folder

remotes/origin/stable
Michael Gapczynski 14 years ago
parent 35d6051e9d
commit d91d2178b8
  1. 2
      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']));
}

Loading…
Cancel
Save