From c1c2ba7b4e3436bceed0e6b3253b848b77a924ec Mon Sep 17 00:00:00 2001 From: friendica Date: Thu, 16 May 2013 20:27:50 -0700 Subject: allow multiple hublocs --- mod/post.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mod/post.php') diff --git a/mod/post.php b/mod/post.php index 286eb743d..33534ce14 100644 --- a/mod/post.php +++ b/mod/post.php @@ -191,7 +191,7 @@ function post_post(&$a) { logger('mod_zot: pickup: ' . $ret['message'], LOGGER_DEBUG); json_return_and_die($ret); } - $r = q("select hubloc_sitekey from hubloc where hubloc_url = '%s' and hubloc_callback = '%s' and hubloc_sitekey != '' limit 1", + $r = q("select hubloc_sitekey from hubloc where hubloc_url = '%s' and hubloc_callback = '%s' and hubloc_sitekey != '' ", dbesc($data['url']), dbesc($data['callback']) ); @@ -212,7 +212,7 @@ function post_post(&$a) { $sitekey = $hubsite['hubloc_sitekey']; - // logger('sitekey: ' . $sitekey); + logger('mod_zot: Checking sitekey: ' . $sitekey); if(rsa_verify($data['callback'],base64url_decode($data['callback_sig']),$sitekey)) { $forgery = false; -- cgit v1.2.3