mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/AbuseFilter.git
synced 2024-12-18 00:20:37 +00:00
Fix bug in OR condition parsing
This commit is contained in:
parent
5d352d98fe
commit
9a2ddd9aba
|
@ -68,7 +68,7 @@ class AbuseFilter {
|
|||
|
||||
if (trim($thisCond)=='') {
|
||||
// Ignore it
|
||||
$result = true;
|
||||
continue;
|
||||
} else {
|
||||
$result = self::checkConditions( $thisCond, $vars );
|
||||
}
|
||||
|
@ -103,7 +103,7 @@ class AbuseFilter {
|
|||
$thisWord = $thisWord[$wordNum];
|
||||
}
|
||||
|
||||
if ( in_array( $thisWord, array_keys($vars ) ) ) {
|
||||
if ( in_array( $thisWord, array_keys($vars) ) ) {
|
||||
|
||||
$value = $vars[$thisWord];
|
||||
if ($modifier) {
|
||||
|
|
Loading…
Reference in a new issue