aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Magic.php
diff options
context:
space:
mode:
authorMax Kostikov <max@kostikov.co>2021-05-14 08:56:06 +0000
committerMario <mario@mariovavti.com>2021-05-14 08:56:06 +0000
commita03423794a1a9dc15588d40684fee3bf9a57b629 (patch)
tree072ef73577b3ecefcc85f26c7db41166ffbd3d49 /Zotlabs/Module/Magic.php
parentf085c3c98f834bc4e3906c456f1447de2e955118 (diff)
downloadvolse-hubzilla-a03423794a1a9dc15588d40684fee3bf9a57b629.tar.gz
volse-hubzilla-a03423794a1a9dc15588d40684fee3bf9a57b629.tar.bz2
volse-hubzilla-a03423794a1a9dc15588d40684fee3bf9a57b629.zip
Random PHP 8 fixes
Diffstat (limited to 'Zotlabs/Module/Magic.php')
-rw-r--r--Zotlabs/Module/Magic.php3
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']) {