diff options
author | friendica <info@friendica.com> | 2013-07-21 22:39:21 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2013-07-21 22:39:21 -0700 |
commit | 05612a8a7782e8da569e18dc41001235e2b514e6 (patch) | |
tree | 218eecc8e1c8346ed91b68f07cee7db13686861b /include/zot.php | |
parent | 4680a818ead0c7af86f77f58a03bbafb553b6b0c (diff) | |
download | volse-hubzilla-05612a8a7782e8da569e18dc41001235e2b514e6.tar.gz volse-hubzilla-05612a8a7782e8da569e18dc41001235e2b514e6.tar.bz2 volse-hubzilla-05612a8a7782e8da569e18dc41001235e2b514e6.zip |
make zot_finger more bulletproof
Diffstat (limited to 'include/zot.php')
-rw-r--r-- | include/zot.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/zot.php b/include/zot.php index b89992a42..829d219b9 100644 --- a/include/zot.php +++ b/include/zot.php @@ -164,6 +164,11 @@ function zot_finger($webbie,$channel) { $xchan_addr = $address . '@' . $host; + if((! $address) || (! $xchan_addr)) { + logger('zot_finger: no address :' . $webbie); + return array('success' => false); + } + $r = q("select xchan.*, hubloc.* from xchan left join hubloc on xchan_hash = hubloc_hash where xchan_addr = '%s' and (hubloc_flags & %d) limit 1", |