diff options
author | Mario <mario@mariovavti.com> | 2025-03-12 19:15:28 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2025-03-12 19:15:28 +0000 |
commit | c5fb8eafac8d8012f9bc09ef030ebffedf4ce096 (patch) | |
tree | 4ecd36f0892501f0a19e038f5ef1fd841eaad600 /Zotlabs/Module | |
parent | 7d6202be139910376516e1fc8bac7eebf1117044 (diff) | |
download | volse-hubzilla-c5fb8eafac8d8012f9bc09ef030ebffedf4ce096.tar.gz volse-hubzilla-c5fb8eafac8d8012f9bc09ef030ebffedf4ce096.tar.bz2 volse-hubzilla-c5fb8eafac8d8012f9bc09ef030ebffedf4ce096.zip |
allow to send signed requests from mod zot_probe
Diffstat (limited to 'Zotlabs/Module')
-rw-r--r-- | Zotlabs/Module/Zot_probe.php | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/Zotlabs/Module/Zot_probe.php b/Zotlabs/Module/Zot_probe.php index 3eaabdd92..cf8355ce6 100644 --- a/Zotlabs/Module/Zot_probe.php +++ b/Zotlabs/Module/Zot_probe.php @@ -15,13 +15,19 @@ class Zot_probe extends \Zotlabs\Web\Controller { $o .= '<form action="zot_probe" method="get">'; $o .= 'Lookup URI: <input type="text" style="width: 250px;" name="addr" value="' . $addr .'" /><br>'; + $o .= '<input type="checkbox" name="sign" /> Sign request <br>'; $o .= '<input type="submit" name="submit" value="Submit" /></form>'; $o .= '<br /><br />'; if($addr) { - $x = Zotfinger::exec($addr); + $channel = null; + if ($_GET['sign']) { + $channel = get_sys_channel(); + } + + $x = Zotfinger::exec($addr, $channel); $o .= '<pre>' . htmlspecialchars(print_array($x)) . '</pre>'; |