Skip to content
Permalink
Browse files

! Admins couldn't search for members in the admin area without specif…

…ying an IP, because the code was incorrectly trying to expand empty IP addresses and would thus force searching for an invalid IP. (ManageMembers.php)
  • Loading branch information...
Nao committed Oct 7, 2019
1 parent 4b83267 commit f6c20a4a524f6fc3b4ce92cdd3c3f5a084ed07bc
Showing with 5 additions and 2 deletions.
  1. +5 −2 core/app/ManageMembers.php
@@ -295,11 +295,14 @@ function ViewMemberlist()
// Can they see all IP addresses? If not, they shouldn't see any.
if (!allowedTo('manage_bans'))
unset($params['ip']);
elseif (isset($_POST['ip']))
elseif (isset($_POST['ip']) && $_POST['ip'] !== '')
{
$_POST['ip'] = expand_ip($_POST['ip']);
if ($_POST['ip'] == INVALID_IP)
unset($_POST['ip']);
}
// !!! Validate a little more.
// Loop through every field of the form.
$query_parts = array();
$where_params = array();

0 comments on commit f6c20a4

Please sign in to comment.
You can’t perform that action at this time.