mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 12:28:52 +00:00
Merge branch '3.2.x'
* 3.2.x: [ticket/13630] Prevent empty parameter select_single
This commit is contained in:
commit
e7cf42da8c
2 changed files with 3 additions and 2 deletions
|
@ -157,7 +157,7 @@ function compose_pm($id, $mode, $action, $user_folders = array())
|
||||||
'S_SHOW_PM_BOX' => true,
|
'S_SHOW_PM_BOX' => true,
|
||||||
'S_ALLOW_MASS_PM' => ($config['allow_mass_pm'] && $auth->acl_get('u_masspm')) ? true : false,
|
'S_ALLOW_MASS_PM' => ($config['allow_mass_pm'] && $auth->acl_get('u_masspm')) ? true : false,
|
||||||
'S_GROUP_OPTIONS' => ($config['allow_mass_pm'] && $auth->acl_get('u_masspm_group')) ? $group_options : '',
|
'S_GROUP_OPTIONS' => ($config['allow_mass_pm'] && $auth->acl_get('u_masspm_group')) ? $group_options : '',
|
||||||
'U_FIND_USERNAME' => append_sid("{$phpbb_root_path}memberlist.$phpEx", "mode=searchuser&form=postform&field=username_list&select_single=$select_single"),
|
'U_FIND_USERNAME' => append_sid("{$phpbb_root_path}memberlist.$phpEx", "mode=searchuser&form=postform&field=username_list&select_single=" . (int) $select_single),
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1279,7 +1279,8 @@ switch ($mode)
|
||||||
}
|
}
|
||||||
|
|
||||||
$param = call_user_func_array(array($request, 'variable'), $call);
|
$param = call_user_func_array(array($request, 'variable'), $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;
|
$params[] = $param;
|
||||||
|
|
||||||
if ($key != 'first_char')
|
if ($key != 'first_char')
|
||||||
|
|
Loading…
Add table
Reference in a new issue