From 835dda9659cb6b419baf25807ecf9f5cd5ca8b04 Mon Sep 17 00:00:00 2001 From: slawkens Date: Thu, 5 Jun 2025 19:08:53 +0200 Subject: [PATCH] Remove duplicated code - account redirect, already in account/manage --- system/pages/account/redirect.php | 23 ----------------------- 1 file changed, 23 deletions(-) delete mode 100644 system/pages/account/redirect.php diff --git a/system/pages/account/redirect.php b/system/pages/account/redirect.php deleted file mode 100644 index 78bc54d9..00000000 --- a/system/pages/account/redirect.php +++ /dev/null @@ -1,23 +0,0 @@ - - * @author Slawkens - * @copyright 2019 MyAAC - * @link https://my-aac.org - */ -defined('MYAAC') or die('Direct access not allowed!'); - -$redirect = urldecode($_REQUEST['redirect']); - -// should never happen, unless hacker modify the URL -if (!str_contains($redirect, BASE_URL)) { - error('Fatal error: Cannot redirect outside the website.'); - return; -} - -$twig->display('account.redirect.html.twig', array( - 'redirect' => $redirect -));