Add wildcard to database query in unshareFromSelf()

This commit is contained in:
Michael Gapczynski 2011-07-06 20:16:29 -04:00
parent 2908145b94
commit 2212b5b5d7
1 changed files with 1 additions and 1 deletions

View File

@ -104,7 +104,7 @@ class OC_SHARE {
*/
public static function unshareFromSelf($target) {
$query = OC_DB::prepare("DELETE FROM *PREFIX*sharing WHERE target COLLATE latin1_bin LIKE ? AND uid_shared_with = ?");
$query->execute(array($target, $_SESSION['user_id']));
$query->execute(array($target."%", $_SESSION['user_id']));
}
/**