aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2025-03-22 18:18:55 +0100
committerMario Vavti <mario@mariovavti.com>2025-03-22 18:18:55 +0100
commit122d46b79bdd3ebea14482681c88c6c87191d807 (patch)
tree0fd7f1c9c64d62818aa59d6c0c4b77232f345277 /Zotlabs
parent36448adad4e002e144900462b7e062ad5de71865 (diff)
downloadvolse-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.php10
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);
}