diff options
author | Marc Alexander <admin@m-a-styles.de> | 2014-11-03 16:24:09 +0100 |
---|---|---|
committer | Marc Alexander <admin@m-a-styles.de> | 2014-11-03 16:24:09 +0100 |
commit | 6fd092b5df6f96530fec8ba1aec426b6d59b822b (patch) | |
tree | 750f1cafd8ace45c64256dba76a8511addca49e2 /phpBB/includes/functions.php | |
parent | 6cc7da0c9c0fc8515aad780fba5de5b3860e5d56 (diff) | |
download | forums-6fd092b5df6f96530fec8ba1aec426b6d59b822b.tar forums-6fd092b5df6f96530fec8ba1aec426b6d59b822b.tar.gz forums-6fd092b5df6f96530fec8ba1aec426b6d59b822b.tar.bz2 forums-6fd092b5df6f96530fec8ba1aec426b6d59b822b.tar.xz forums-6fd092b5df6f96530fec8ba1aec426b6d59b822b.zip |
[ticket/13280] Correctly format user page for build_url()
PHPBB3-13280
Diffstat (limited to 'phpBB/includes/functions.php')
-rw-r--r-- | phpBB/includes/functions.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php index 1a3560dbb1..56363ed5c0 100644 --- a/phpBB/includes/functions.php +++ b/phpBB/includes/functions.php @@ -2397,7 +2397,8 @@ function build_url($strip_vars = false) global $config, $user, $phpbb_path_helper; $php_ext = $phpbb_path_helper->get_php_ext(); - $page = $user->page['page']; + // Change page back to expected format + $page = str_replace('&', '&', urldecode($user->page['page'])); // We need to be cautious here. // On some situations, the redirect path is an absolute URL, sometimes a relative path |