Fix redirects in forum + polls

This commit is contained in:
slawkens
2024-04-14 16:06:57 +02:00
parent eb0c2a7674
commit d5915df37e
7 changed files with 8 additions and 8 deletions

View File

@@ -21,7 +21,7 @@ if(!$logged) {
if(isset($_REQUEST['redirect']))
{
$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.');