1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-03 13:17:24 +02:00

Issue #4009 - refining banlist ip search

This commit is contained in:
Cameron
2019-11-05 09:20:48 -08:00
parent 762844037f
commit 7f07f019c3
2 changed files with 11 additions and 2 deletions

View File

@@ -149,7 +149,16 @@ class banlist_ui extends e_admin_ui
*/ */
function handleListBanlistIpFilter($srch) function handleListBanlistIpFilter($srch)
{ {
return "banlist_ip = '".e107::getIPHandler()->ipEncode($srch)."' OR banlist_ip = '".$srch."'"; $ret = array(
"banlist_ip = '".$srch."'"
);
if($ip6 = e107::getIPHandler()->ipEncode($srch))
{
$ret[] = "banlist_ip = '".$ip6."'";
}
return implode(" OR ",$ret);
} }

View File

@@ -4197,7 +4197,7 @@ class e_admin_controller_ui extends e_admin_controller
{ {
e107::getMessage()->addDebug(print_a($searchQry,true)); e107::getMessage()->addDebug(print_a($searchQry,true));
} }
$className = get_class($this); $className = get_class($this);
// main table should select everything // main table should select everything