allow multiple hublocs
This commit is contained in:
parent
deedac6ae5
commit
c1c2ba7b4e
@ -191,7 +191,7 @@ function post_post(&$a) {
|
|||||||
logger('mod_zot: pickup: ' . $ret['message'], LOGGER_DEBUG);
|
logger('mod_zot: pickup: ' . $ret['message'], LOGGER_DEBUG);
|
||||||
json_return_and_die($ret);
|
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['url']),
|
||||||
dbesc($data['callback'])
|
dbesc($data['callback'])
|
||||||
);
|
);
|
||||||
@ -212,7 +212,7 @@ function post_post(&$a) {
|
|||||||
|
|
||||||
$sitekey = $hubsite['hubloc_sitekey'];
|
$sitekey = $hubsite['hubloc_sitekey'];
|
||||||
|
|
||||||
// logger('sitekey: ' . $sitekey);
|
logger('mod_zot: Checking sitekey: ' . $sitekey);
|
||||||
|
|
||||||
if(rsa_verify($data['callback'],base64url_decode($data['callback_sig']),$sitekey)) {
|
if(rsa_verify($data['callback'],base64url_decode($data['callback_sig']),$sitekey)) {
|
||||||
$forgery = false;
|
$forgery = false;
|
||||||
|
Reference in New Issue
Block a user