mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 21:40:43 +02:00
[ticket/13630] Prevent empty parameter select_single
PHPBB3-13630
This commit is contained in:
@@ -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')
|
||||
|
Reference in New Issue
Block a user