some changes merged from wrong branch... new function channel_reddress() instead of hardwired generation and which fixes case-sensitivity; allow dot notation in config and pconfig utils, updated string file
This commit is contained in:
@@ -42,7 +42,7 @@ class Fhublocs extends \Zotlabs\Web\Controller {
|
||||
if($y)
|
||||
$primary_address = $y[0]['xchan_addr'];
|
||||
|
||||
$hub_address = $rr['channel']['channel_address'] . '@' . \App::get_hostname();
|
||||
$hub_address = channel_reddress($rr['channel']);
|
||||
|
||||
|
||||
$primary = (($hub_address === $primary_address) ? 1 : 0);
|
||||
@@ -61,7 +61,7 @@ class Fhublocs extends \Zotlabs\Web\Controller {
|
||||
dbesc($rr['channel_guid']),
|
||||
dbesc($rr['channel_guid_sig']),
|
||||
dbesc($rr['channel_hash']),
|
||||
dbesc($rr['channel_address'] . '@' . \App::get_hostname()),
|
||||
dbesc(channel_reddress($rr)),
|
||||
intval($primary),
|
||||
dbesc(z_root()),
|
||||
dbesc(base64url_encode(rsa_sign(z_root(),$rr['channel_prvkey']))),
|
||||
|
||||
Reference in New Issue
Block a user