Commit eec491f9 by Scott

Fix IP match error on ranges/wildcards

parent 82f6ef2f
......@@ -193,11 +193,6 @@ function qa_block_ip_match($ip, $blockipclause)
return $ip === $blockipclause;
}
// check if same IP version
if (($ipv4 && !$blockipv4) || (!$ipv4 && $blockipv4)) {
return false;
}
if (filter_var($ip, FILTER_VALIDATE_IP)) {
if (preg_match('/^(.*)\-(.*)$/', $blockipclause, $matches)) {
// match IP range
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment