mirror of
https://github.com/e107inc/e107.git
synced 2025-08-23 06:33:22 +02:00
Provide raw search query to custom method.
Issue: #4009 Support banlist filtering using wildcards.
This commit is contained in:
@@ -153,9 +153,10 @@ class banlist_ui extends e_admin_ui
|
||||
"banlist_ip = '".$srch."'"
|
||||
);
|
||||
|
||||
if($ip6 = e107::getIPHandler()->ipEncode($srch))
|
||||
if($ip6 = e107::getIPHandler()->ipEncode($srch,true))
|
||||
{
|
||||
$ret[] = "banlist_ip = '".$ip6."'";
|
||||
$ip = str_replace('x', '', $ip6);
|
||||
$ret[] = "banlist_ip LIKE '%".$ip."%'";
|
||||
}
|
||||
|
||||
return implode(" OR ",$ret);
|
||||
|
Reference in New Issue
Block a user