diff options
author | friendica <info@friendica.com> | 2013-08-11 16:12:40 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2013-08-11 16:16:05 -0700 |
commit | 5aa508dba77ed69e1aa8810623e75d15ad15c2ad (patch) | |
tree | 9fd97fdb05fbb7bfea1b038ae1b0dae99f44a229 /include | |
parent | d8d45dab76fa96df9f57e9d5975daaf5a5322026 (diff) | |
download | volse-hubzilla-5aa508dba77ed69e1aa8810623e75d15ad15c2ad.tar.gz volse-hubzilla-5aa508dba77ed69e1aa8810623e75d15ad15c2ad.tar.bz2 volse-hubzilla-5aa508dba77ed69e1aa8810623e75d15ad15c2ad.zip |
don't import any hubloc that doesn't have a sitekey. Eventually we should also verify that it is a valid key, as we've already seen one case where one character got mangled and messed up communication.
Diffstat (limited to 'include')
-rw-r--r-- | include/zot.php | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/include/zot.php b/include/zot.php index d1bc03bc2..bddbc9bee 100644 --- a/include/zot.php +++ b/include/zot.php @@ -583,9 +583,14 @@ function import_xchan($arr) { intval(HUBLOC_FLAGS_PRIMARY), intval($r[0]['hubloc_id']) ); + update_modtime($xchan_hash); + $changed = true; } - update_modtime($xchan_hash); - $changed = true; + continue; + } + + if(! $location['sitekey']) { + logger('import_xchan: empty hubloc sitekey. ' . print_r($location,true)); continue; } |