Page MenuHomePhabricator
Authored By
bzimport
Nov 21 2014, 9:53 PM
Size
811 B
Referenced Files
None
Subscribers
None
Index: SpamBlacklist_body.php
===================================================================
--- SpamBlacklist_body.php (revision 25386)
+++ SpamBlacklist_body.php (working copy)
@@ -308,10 +308,10 @@
function buildRegexes( $lines, $batchSize=4096 ) {
# Make regex
# It's faster using the S modifier even though it will usually only be run once
- //$regex = 'http://+[a-z0-9_\-.]*(' . implode( '|', $lines ) . ')';
+ //$regex = 'https?://+[a-z0-9_\-.]*(' . implode( '|', $lines ) . ')';
//return '/' . str_replace( '/', '\/', preg_replace('|\\\*/|', '/', $regex) ) . '/Si';
$regexes = array();
- $regexStart = '/http:\/\/+[a-z0-9_\-.]*(';
+ $regexStart = '/https?:\/\/+[a-z0-9_\-.]*(';
$regexEnd = ($batchSize > 0 ) ? ')/Si' : ')/i';
$build = false;
foreach( $lines as $line ) {

File Metadata

Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3745
Default Alt Text
11129p1 (811 B)

Event Timeline