diff options
author | Marc Alexander <admin@m-a-styles.de> | 2015-04-24 15:09:30 +0200 |
---|---|---|
committer | Andreas Fischer <bantu@phpbb.com> | 2015-04-28 22:12:04 +0200 |
commit | d7c96cc60ca5836356a0c4f0bb9a9976a4a232ab (patch) | |
tree | 70a2dc48b8d18697b79d9be85816badb93aa2237 /phpBB/includes | |
parent | 416728fc172b03e06b376ca7efb085af27985dbb (diff) | |
download | forums-d7c96cc60ca5836356a0c4f0bb9a9976a4a232ab.tar forums-d7c96cc60ca5836356a0c4f0bb9a9976a4a232ab.tar.gz forums-d7c96cc60ca5836356a0c4f0bb9a9976a4a232ab.tar.bz2 forums-d7c96cc60ca5836356a0c4f0bb9a9976a4a232ab.tar.xz forums-d7c96cc60ca5836356a0c4f0bb9a9976a4a232ab.zip |
[ticket/security-180] Use language variable for redirect error in 3.1+
SECURITY-180
Diffstat (limited to 'phpBB/includes')
-rw-r--r-- | phpBB/includes/functions.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php index e00231c360..cc5d185f4e 100644 --- a/phpBB/includes/functions.php +++ b/phpBB/includes/functions.php @@ -2309,7 +2309,7 @@ function redirect($url, $return = false, $disable_cd_check = false) // Attention: only able to redirect within the same domain if $disable_cd_check is false (yourdomain.com -> www.yourdomain.com will not work) if (!$disable_cd_check && $url_parts['host'] !== $user->host) { - trigger_error('Tried to redirect to potentially insecure url.', E_USER_ERROR); + trigger_error('INSECURE_REDIRECT', E_USER_ERROR); } } else if ($url[0] == '/') |