Index: trunk/extensions/SpamBlacklist/SpamBlacklist_body.php |
— | — | @@ -308,10 +308,10 @@ |
309 | 309 | function buildRegexes( $lines, $batchSize=4096 ) { |
310 | 310 | # Make regex |
311 | 311 | # It's faster using the S modifier even though it will usually only be run once |
312 | | - //$regex = 'http://+[a-z0-9_\-.]*(' . implode( '|', $lines ) . ')'; |
| 312 | + //$regex = 'https?://+[a-z0-9_\-.]*(' . implode( '|', $lines ) . ')'; |
313 | 313 | //return '/' . str_replace( '/', '\/', preg_replace('|\\\*/|', '/', $regex) ) . '/Si'; |
314 | 314 | $regexes = array(); |
315 | | - $regexStart = '/http:\/\/+[a-z0-9_\-.]*('; |
| 315 | + $regexStart = '/https?:\/\/+[a-z0-9_\-.]*('; |
316 | 316 | $regexEnd = ($batchSize > 0 ) ? ')/Si' : ')/i'; |
317 | 317 | $build = false; |
318 | 318 | foreach( $lines as $line ) { |