diff options
author | Jakub Senko <jakubsenko@gmail.com> | 2016-03-18 12:30:16 +0100 |
---|---|---|
committer | Jakub Senko <jakubsenko@gmail.com> | 2016-03-20 16:58:35 +0100 |
commit | f77142c0b67acf4cf102035ec521f8cec395b43e (patch) | |
tree | 418bd596999c65f06496766c011ccf00003fed05 /phpBB/memberlist.php | |
parent | Merge pull request #4226 from rxu/ticket/14540 (diff) | |
download | phpbb-f77142c0b67acf4cf102035ec521f8cec395b43e.tar.gz phpbb-f77142c0b67acf4cf102035ec521f8cec395b43e.tar.bz2 phpbb-f77142c0b67acf4cf102035ec521f8cec395b43e.zip |
[ticket/13630] Prevent empty parameter select_single
PHPBB3-13630
Diffstat (limited to 'phpBB/memberlist.php')
-rw-r--r-- | phpBB/memberlist.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/phpBB/memberlist.php b/phpBB/memberlist.php index 7cf39f4eb7..70e834b682 100644 --- a/phpBB/memberlist.php +++ b/phpBB/memberlist.php @@ -1277,7 +1277,8 @@ switch ($mode) } $param = call_user_func_array('request_var', $call); - $param = urlencode($key) . '=' . ((is_string($param)) ? urlencode($param) : $param); + // Encode strings, convert everything else to int in order to prevent empty parameters. + $param = urlencode($key) . '=' . ((is_string($param)) ? urlencode($param) : (int) $param); $params[] = $param; if ($key != 'first_char') |