diff options
author | Mario Vavti <mario@mariovavti.com> | 2021-05-15 15:16:05 +0200 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2021-05-15 15:16:05 +0200 |
commit | 2ee1e2af723ef812a6072fc26c175f1ca5819be5 (patch) | |
tree | 90cf55939df0a3f711ca5009f9330fcaca76c734 /Zotlabs/Module/Magic.php | |
parent | c3ad21c5486c58ae08aabbbbfbd23afdab15ec0c (diff) | |
parent | 635a24dff477548bdcf601874cb1ff2509aef3cc (diff) | |
download | volse-hubzilla-2ee1e2af723ef812a6072fc26c175f1ca5819be5.tar.gz volse-hubzilla-2ee1e2af723ef812a6072fc26c175f1ca5819be5.tar.bz2 volse-hubzilla-2ee1e2af723ef812a6072fc26c175f1ca5819be5.zip |
Merge branch 'dev' of https://framagit.org/hubzilla/core into dev
Diffstat (limited to 'Zotlabs/Module/Magic.php')
-rw-r--r-- | Zotlabs/Module/Magic.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Zotlabs/Module/Magic.php b/Zotlabs/Module/Magic.php index b4372e26d..bfd38d2fa 100644 --- a/Zotlabs/Module/Magic.php +++ b/Zotlabs/Module/Magic.php @@ -40,7 +40,7 @@ class Magic extends Controller { goaway($dest); } - $basepath = $parsed['scheme'] . '://' . $parsed['host'] . (($parsed['port']) ? ':' . $parsed['port'] : ''); + $basepath = $parsed['scheme'] . '://' . $parsed['host'] . (isset($parsed['port']) ? ':' . $parsed['port'] : ''); $owapath = SConfig::get($basepath,'system','openwebauth', $basepath . '/owa'); // This is ready-made for a plugin that provides a blacklist or "ask me" before blindly authenticating. @@ -110,6 +110,7 @@ class Magic extends Controller { $headers['(request-target)'] = 'post ' . '/owa'; $headers = HTTPSig::create_sig($headers,$channel['channel_prvkey'], channel_url($channel),true,'sha512'); + $redirects = 0; $x = z_post_url($owapath,$data,$redirects,[ 'headers' => $headers ]); logger('owa fetch returned: ' . print_r($x,true),LOGGER_DATA); if ($x['success']) { |