Post-fix redirect

This commit is contained in:
slawkens
2024-04-14 16:02:55 +02:00
parent d225c2da26
commit eb0c2a7674
2 changed files with 7 additions and 1 deletions

View File

@@ -13,7 +13,7 @@ defined('MYAAC') or die('Direct access not allowed!');
$redirect = urldecode($_REQUEST['redirect']);
// should never happen, unless hacker modify the URL
if (!str_contains($_REQUEST['redirect'], BASE_URL)) {
if (!str_contains($redirect, BASE_URL)) {
error('Fatal error: Cannot redirect outside the website.');
return;
}