Index: trunk/extensions/SpamBlacklist/SpamBlacklist_body.php |
— | — | @@ -386,10 +386,10 @@ |
387 | 387 | # Make regex |
388 | 388 | # It's faster using the S modifier even though it will usually only be run once |
389 | 389 | //$regex = 'https?://+[a-z0-9_\-.]*(' . implode( '|', $lines ) . ')'; |
390 | | - //return '/' . str_replace( '/', '\/', preg_replace('|\\\*/|', '/', $regex) ) . '/Si'; |
| 390 | + //return '/' . str_replace( '/', '\/', preg_replace('|\\\*/|', '/', $regex) ) . '/Sim'; |
391 | 391 | $regexes = array(); |
392 | 392 | $regexStart = '/https?:\/\/+[a-z0-9_\-.]*('; |
393 | | - $regexEnd = ($batchSize > 0 ) ? ')/Si' : ')/i'; |
| 393 | + $regexEnd = ($batchSize > 0 ) ? ')/Sim' : ')/im'; |
394 | 394 | $build = false; |
395 | 395 | foreach( $lines as $line ) { |
396 | 396 | if( substr( $line, -1, 1 ) == "\\" ) { |