From a9fb5dffa3c699df21018a7ac95e40fcfaa02898 Mon Sep 17 00:00:00 2001 From: slawkens Date: Sat, 9 Dec 2023 09:26:33 +0100 Subject: [PATCH] Fix account manage redirect --- system/pages/account/manage.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/system/pages/account/manage.php b/system/pages/account/manage.php index c4a8402a..615ffdc7 100644 --- a/system/pages/account/manage.php +++ b/system/pages/account/manage.php @@ -18,6 +18,16 @@ if(!$logged) { return; } +if(isset($_REQUEST['redirect'])) +{ + $redirect = urldecode($_REQUEST['redirect']); + + $twig->display('account.redirect.html.twig', array( + 'redirect' => $redirect + )); + return; +} + $groups = new OTS_Groups_List(); $freePremium = isset($config['lua']['freePremium']) && getBoolean($config['lua']['freePremium']) || $account_logged->getPremDays() == OTS_Account::GRATIS_PREMIUM_DAYS;