aboutsummaryrefslogtreecommitdiffstats
path: root/include/connections.php
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-10-29 22:21:52 -0700
committerzotlabs <mike@macgirvin.com>2017-10-29 22:21:52 -0700
commit4fef29e61c32b129f0090a4962d91607337a9406 (patch)
tree44d01a856ce5aef10048db0bcdfed3a08e107e96 /include/connections.php
parent56c3d5dbcbdbaef9df7cb03d24e67ad8c4a157d0 (diff)
downloadvolse-hubzilla-4fef29e61c32b129f0090a4962d91607337a9406.tar.gz
volse-hubzilla-4fef29e61c32b129f0090a4962d91607337a9406.tar.bz2
volse-hubzilla-4fef29e61c32b129f0090a4962d91607337a9406.zip
memory overflow trying to delete a connection with a very high noise to signal ratio
Diffstat (limited to 'include/connections.php')
-rw-r--r--include/connections.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/connections.php b/include/connections.php
index 60bce018e..e9d7daa2d 100644
--- a/include/connections.php
+++ b/include/connections.php
@@ -369,7 +369,7 @@ function contact_remove($channel_id, $abook_id) {
return false;
- $r = q("select * from item where (owner_xchan = '%s' or author_xchan = '%s') and uid = %d",
+ $r = q("select id from item where (owner_xchan = '%s' or author_xchan = '%s') and uid = %d",
dbesc($abook['abook_xchan']),
dbesc($abook['abook_xchan']),
intval($channel_id)