Fix unshare() to remove database entries of files within a shared folder
This commit is contained in:
parent
35d6051e9d
commit
d91d2178b8
|
@ -97,7 +97,7 @@ class OC_SHARE {
|
||||||
* @param array $uid_shared_with
|
* @param array $uid_shared_with
|
||||||
*/
|
*/
|
||||||
public static function unshare($source, $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) {
|
foreach ($uid_shared_with as $uid) {
|
||||||
$query->execute(array($source, $uid, $_SESSION['user_id']));
|
$query->execute(array($source, $uid, $_SESSION['user_id']));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue