diff options
author | Mario Vavti <mario@mariovavti.com> | 2025-03-22 18:18:55 +0100 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2025-03-22 18:18:55 +0100 |
commit | 122d46b79bdd3ebea14482681c88c6c87191d807 (patch) | |
tree | 0fd7f1c9c64d62818aa59d6c0c4b77232f345277 /Zotlabs | |
parent | 36448adad4e002e144900462b7e062ad5de71865 (diff) | |
download | volse-hubzilla-122d46b79bdd3ebea14482681c88c6c87191d807.tar.gz volse-hubzilla-122d46b79bdd3ebea14482681c88c6c87191d807.tar.bz2 volse-hubzilla-122d46b79bdd3ebea14482681c88c6c87191d807.zip |
use the new version of unparse_url() and fall through to destination if nothing before applied - otherwise remote redirects will fail (e.g. being logged in to a remote server and vewing a linked image with an attached zid at another server)
Diffstat (limited to 'Zotlabs')
-rw-r--r-- | Zotlabs/Module/Magic.php | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/Zotlabs/Module/Magic.php b/Zotlabs/Module/Magic.php index 732488002..122d90b1b 100644 --- a/Zotlabs/Module/Magic.php +++ b/Zotlabs/Module/Magic.php @@ -41,11 +41,7 @@ class Magic extends Controller { http_status_exit(400, 'Bad Request'); } - $basepath = unparse_url(array_filter( - $parsed, - fn (string $key) => in_array($key, ['scheme', 'host', 'port']), - ARRAY_FILTER_USE_KEY - )); + $basepath = unparse_url($parsed, ['scheme', 'host', 'port']); $owapath = SConfig::get($basepath, 'system', 'openwebauth', $basepath . '/owa'); @@ -142,12 +138,14 @@ class Magic extends Controller { $o .= '<a href=' . $dest . '>' . $dest . '</a>'; echo $o; + killme(); + } } } } - killme(); + goaway($dest); } |