diff options
author | zotlabs <mike@macgirvin.com> | 2017-10-25 16:55:18 -0700 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2017-10-25 16:55:18 -0700 |
commit | dafe0a55471c08120c5d34f263aa0d5e53cc10b7 (patch) | |
tree | 0074fdf60a73e9510132826218108c7f039c9036 /Zotlabs/Daemon/Notifier.php | |
parent | 59a9f6bf026e533e0702c503be1ce046c032d68f (diff) | |
parent | 859195d07af57af072c4aa1c8235e00478ef5599 (diff) | |
download | volse-hubzilla-dafe0a55471c08120c5d34f263aa0d5e53cc10b7.tar.gz volse-hubzilla-dafe0a55471c08120c5d34f263aa0d5e53cc10b7.tar.bz2 volse-hubzilla-dafe0a55471c08120c5d34f263aa0d5e53cc10b7.zip |
Merge branch 'dev' of https://github.com/redmatrix/hubzilla into dev_merge
Diffstat (limited to 'Zotlabs/Daemon/Notifier.php')
-rw-r--r-- | Zotlabs/Daemon/Notifier.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Zotlabs/Daemon/Notifier.php b/Zotlabs/Daemon/Notifier.php index 84212270f..d0175549b 100644 --- a/Zotlabs/Daemon/Notifier.php +++ b/Zotlabs/Daemon/Notifier.php @@ -433,7 +433,7 @@ class Notifier { $env_recips = (($private) ? array() : null); - $details = q("select xchan_hash, xchan_instance_url, xchan_network, xchan_addr, xchan_guid, xchan_guid_sig from xchan where xchan_hash in (" . implode(',',$recipients) . ")"); + $details = q("select xchan_hash, xchan_instance_url, xchan_network, xchan_addr, xchan_guid, xchan_guid_sig from xchan where xchan_hash in (" . protect_sprintf(implode(',',$recipients)) . ")"); $recip_list = array(); @@ -500,7 +500,7 @@ class Notifier { // Now we have collected recipients (except for external mentions, FIXME) // Let's reduce this to a set of hubs; checking that the site is not dead. - $r = q("select hubloc.*, site.site_crypto, site.site_flags from hubloc left join site on site_url = hubloc_url where hubloc_hash in (" . implode(',',$recipients) . ") + $r = q("select hubloc.*, site.site_crypto, site.site_flags from hubloc left join site on site_url = hubloc_url where hubloc_hash in (" . protect_sprintf(implode(',',$recipients)) . ") and hubloc_error = 0 and hubloc_deleted = 0 and ( site_dead = 0 OR site_dead is null ) " ); |