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 -));