mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/SpamBlacklist
synced 2024-12-18 01:30:42 +00:00
* (bug 12896) A way to bypass Spam Blacklist
This commit is contained in:
parent
dc8b6497aa
commit
cc46cfa8bf
|
@ -206,6 +206,7 @@ class SpamBlacklist {
|
|||
$this->title = $title;
|
||||
$this->text = $text;
|
||||
$this->section = $section;
|
||||
$text = str_replace( '.', '.', $text ); //@bug 12896
|
||||
|
||||
$blacklists = $this->getBlacklists();
|
||||
$whitelists = $this->getWhitelists();
|
||||
|
@ -429,8 +430,8 @@ class SpamRegexBatch {
|
|||
function stripLines( $lines ) {
|
||||
return array_filter(
|
||||
array_map( 'trim',
|
||||
preg_replace( '/#.*$/', '',
|
||||
$lines ) ) );
|
||||
preg_replace( '/#.*$/', '',
|
||||
$lines ) ) );
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue