aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions.php
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2014-11-03 17:14:18 +0100
committerMarc Alexander <admin@m-a-styles.de>2014-11-03 17:27:01 +0100
commit13b59af1ffd0af652ba0ce3bc3f2594fc448fdb5 (patch)
treee9b81e6fce3e55ad107081e6450440bedcbd443c /phpBB/includes/functions.php
parent6fd092b5df6f96530fec8ba1aec426b6d59b822b (diff)
downloadforums-13b59af1ffd0af652ba0ce3bc3f2594fc448fdb5.tar
forums-13b59af1ffd0af652ba0ce3bc3f2594fc448fdb5.tar.gz
forums-13b59af1ffd0af652ba0ce3bc3f2594fc448fdb5.tar.bz2
forums-13b59af1ffd0af652ba0ce3bc3f2594fc448fdb5.tar.xz
forums-13b59af1ffd0af652ba0ce3bc3f2594fc448fdb5.zip
[ticket/13280] Add additional sanitizer for ampersands in server superglobal
PHPBB3-13280
Diffstat (limited to 'phpBB/includes/functions.php')
-rw-r--r--phpBB/includes/functions.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php
index 56363ed5c0..dc195cebb6 100644
--- a/phpBB/includes/functions.php
+++ b/phpBB/includes/functions.php
@@ -2397,8 +2397,7 @@ function build_url($strip_vars = false)
global $config, $user, $phpbb_path_helper;
$php_ext = $phpbb_path_helper->get_php_ext();
- // Change page back to expected format
- $page = str_replace('&amp;', '&', urldecode($user->page['page']));
+ $page = str_replace('&amp;', '&', $user->page['page']);
// We need to be cautious here.
// On some situations, the redirect path is an absolute URL, sometimes a relative path