aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2016-09-23 21:10:26 +0200
committerMarc Alexander <admin@m-a-styles.de>2016-09-23 21:10:26 +0200
commit9a64bffd68dcda5685f337641f9c28a86bb8f7a9 (patch)
tree0a3fd4dfd98f24fa5714c1d2aea4acc6dcb730d8
parent77e14c303023365ec38292ef7518b9fed955929a (diff)
parenta5ccdc799713823b1e9ad44ab4664187c21b74a9 (diff)
downloadforums-9a64bffd68dcda5685f337641f9c28a86bb8f7a9.tar
forums-9a64bffd68dcda5685f337641f9c28a86bb8f7a9.tar.gz
forums-9a64bffd68dcda5685f337641f9c28a86bb8f7a9.tar.bz2
forums-9a64bffd68dcda5685f337641f9c28a86bb8f7a9.tar.xz
forums-9a64bffd68dcda5685f337641f9c28a86bb8f7a9.zip
Merge pull request #4459 from rxu/ticket/14794
[ticket/14794] Adjust redirect() behavior for PHP 7.1+ compatibility
-rw-r--r--phpBB/includes/functions.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php
index bec4dbc27a..da698ae4cb 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']))
{