mirror of
https://github.com/slawkens/myaac.git
synced 2025-10-19 04:03:26 +02:00
Post-fix redirect
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user