From a5ccdc799713823b1e9ad44ab4664187c21b74a9 Mon Sep 17 00:00:00 2001 From: rxu Date: Fri, 23 Sep 2016 19:47:05 +0700 Subject: [PATCH] [ticket/14794] Adjust redirect() behavior for PHP 7.1+ compatibility PHPBB3-14794 --- phpBB/includes/functions.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php index 465964913c..864be41d8b 100644 --- a/phpBB/includes/functions.php +++ b/phpBB/includes/functions.php @@ -1723,8 +1723,8 @@ function redirect($url, $return = false, $disable_cd_check = false) if ($url_parts === false) { - // Malformed url, redirect to current page... - $url = generate_board_url() . '/' . $user->page['page']; + // Malformed url + trigger_error('INSECURE_REDIRECT', E_USER_ERROR); } else if (!empty($url_parts['scheme']) && !empty($url_parts['host'])) {