Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F4180
11129p1
Public
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Authored By
•
bzimport
Nov 21 2014, 9:53 PM
2014-11-21 21:53:06 (UTC+0)
Size
811 B
Referenced Files
None
Subscribers
None
11129p1
View Options
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
Details
Attached
Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3745
Default Alt Text
11129p1 (811 B)
Attached To
Mode
T13129: SpamBlacklist should check for HTTPS URLs
Attached
Detach File
Event Timeline
Log In to Comment