1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-30 21:40:43 +02:00

[ticket/13280] Correctly format user page for build_url()

PHPBB3-13280
This commit is contained in:
Marc Alexander
2014-11-03 16:24:09 +01:00
parent 6cc7da0c9c
commit 6fd092b5df
2 changed files with 10 additions and 2 deletions

View File

@@ -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