Index: trunk/extensions/SpamBlacklist/SpamBlacklist_body.php |
— | — | @@ -375,7 +375,7 @@ |
376 | 376 | //$regex = 'https?://+[a-z0-9_\-.]*(' . implode( '|', $lines ) . ')'; |
377 | 377 | //return '/' . str_replace( '/', '\/', preg_replace('|\\\*/|', '/', $regex) ) . '/Sim'; |
378 | 378 | $regexes = array(); |
379 | | - $regexStart = '/https?:\/\/+[a-z0-9_\-.]*('; |
| 379 | + $regexStart = '/(?:https?:)?\/\/+[a-z0-9_\-.]*('; |
380 | 380 | $regexEnd = ($batchSize > 0 ) ? ')/Sim' : ')/im'; |
381 | 381 | $build = false; |
382 | 382 | foreach( $lines as $line ) { |