From 7bc05c5e24ca632f3aa5dfd1fe1e6bd145f9d34c Mon Sep 17 00:00:00 2001 From: Meik Sievertsen Date: Sat, 29 Apr 2006 01:18:57 +0000 Subject: - fixing some bugs, containing fixes for anonymous username displays, eaccelerator issue, permission trace and a few smaller bugs. git-svn-id: file:///svn/phpbb/trunk@5858 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/memberlist.php | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) (limited to 'phpBB/memberlist.php') diff --git a/phpBB/memberlist.php b/phpBB/memberlist.php index b2a3e2a29c..99ba5fd8f5 100644 --- a/phpBB/memberlist.php +++ b/phpBB/memberlist.php @@ -929,14 +929,21 @@ switch ($mode) $pagination_url = "{$phpbb_root_path}memberlist.$phpEx$SID"; // Build a relevant pagination_url - $global_var = ($submit) ? '_POST' : '_GET'; - foreach ($$global_var as $key => $var) + foreach (array('_POST', '_GET') as $global_var) { - if (in_array($key, array('submit', 'start', 'mode')) || !$var) + foreach ($$global_var as $key => $var) { - continue; + if ($global_var == '_POST') + { + unset($_GET[$key]); + } + + if (in_array($key, array('submit', 'start', 'mode')) || !$var) + { + continue; + } + $pagination_url .= '&' . $key . '=' . urlencode(htmlspecialchars($var)); } - $pagination_url .= '&' . $key . '=' . urlencode(htmlspecialchars($var)); } $u_hide_find_member = $pagination_url; -- cgit v1.2.1