Index: trunk/phase3/includes/User.php |
— | — | @@ -137,7 +137,7 @@ |
138 | 138 | * @return bool |
139 | 139 | */ |
140 | 140 | function isIP( $name ) { |
141 | | - return preg_match("/^\d{1,3}\.\d{1,3}.\d{1,3}\.\d{1,3}$/",$name); |
| 141 | + return preg_match("/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/",$name); |
142 | 142 | /*return preg_match("/^ |
143 | 143 | (?:[01]?\d{1,2}|2(:?[0-4]\d|5[0-5]))\. |
144 | 144 | (?:[01]?\d{1,2}|2(:?[0-4]\d|5[0-5]))\. |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -276,6 +276,7 @@ |
277 | 277 | * (bug 2368) Avoid fatally breaking PHP 4.1.2 in a debug line |
278 | 278 | * (bug 2367) Insert correct redirect link record on page move |
279 | 279 | * (bug 2372) Fix rendering of empty-title inline interwiki links |
| 280 | +* (bug 2384) Fix typo in regex for IP address checking |
280 | 281 | |
281 | 282 | |
282 | 283 | === Caveats === |