diff options
author | Mario <mario@mariovavti.com> | 2022-10-26 21:56:32 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2022-10-26 21:56:32 +0000 |
commit | 95f6f9e10aca66c30a1ef7ac6ed24fd6e352007d (patch) | |
tree | 582116e7571ae7eaa4a51578b2f5ebeae31f75a9 /include/zid.php | |
parent | ef2448e17e742e7dcef458993bce1e0a29756aa7 (diff) | |
parent | 9554f535199b5fb3a23dd40f9921a15339da3bd7 (diff) | |
download | volse-hubzilla-95f6f9e10aca66c30a1ef7ac6ed24fd6e352007d.tar.gz volse-hubzilla-95f6f9e10aca66c30a1ef7ac6ed24fd6e352007d.tar.bz2 volse-hubzilla-95f6f9e10aca66c30a1ef7ac6ed24fd6e352007d.zip |
Merge branch 'dev'
Diffstat (limited to 'include/zid.php')
-rw-r--r-- | include/zid.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/zid.php b/include/zid.php index 5710d9f3f..b38457d99 100644 --- a/include/zid.php +++ b/include/zid.php @@ -359,10 +359,12 @@ function owt_init($token) { $_SESSION['authenticated'] = 1; + $delegate = $_REQUEST['delegate'] ?? ''; $delegate_success = false; - if($_REQUEST['delegate']) { + + if($delegate) { $r = q("select * from channel left join xchan on channel_hash = xchan_hash where xchan_addr = '%s' limit 1", - dbesc($_REQUEST['delegate']) + dbesc($delegate) ); if ($r && intval($r[0]['channel_id'])) { $allowed = perm_is_allowed($r[0]['channel_id'],$hubloc['xchan_hash'],'delegate'); |