diff -r 917dcc6c4ceb -r f088805540ae plugins/SpecialAdmin.php --- a/plugins/SpecialAdmin.php Sat Nov 17 22:25:37 2007 -0500 +++ b/plugins/SpecialAdmin.php Sun Nov 18 20:37:08 2007 -0500 @@ -2228,17 +2228,14 @@ } if ( $type == BAN_IP ) { - // parse a range of addresses - $range = parse_ip_range($entry); - if ( !$range ) + if ( !isset($_POST['regex']) ) { - $error = true; - echo '
Malformed IP address expression.
'; - break; + // as of 1.0.2 parsing is done at runtime + $entries[] = $entry; } - foreach ($range as $ip) + else { - $entries[] = $ip; + $entries[] = $entry; } } else @@ -2290,7 +2287,7 @@ ?> Type:
Rule:
- You can ban multiple IP addresses, users, or e-mail addresses by separating entries with a single comma (User1,User2). Do not put a space after the comma. For IP addresses, you may specify ranges like 172|192.168.4-30|90-167.1-90, which will turn into 172 and 192 . 168 . 4-30 and 90-167 . 1 - 90, which matches 18,899 IP addresses. Don't specify large ranges (like the example one here) at once or you risk temporarily (~60sec) overloading the server.
+ You can ban multiple IP addresses, users, or e-mail addresses by separating entries with a single comma (User1,User2). Do not put a space after the comma. For IP addresses, you may specify ranges like 172|192.168.4-30|90-167.1-90, which will turn into 172 and 192 . 168 . 4-30 and 90-167 . 1 - 90, which matches 18,899 IP addresses.
Reason to show to the banned user:
(advanced users only)