https://bugzilla.wikimedia.org/show_bug.cgi?id=50107

--- Comment #1 from Helder <[email protected]> ---
Ok, so I made one more test at
https://pt.wikibooks.org/w/index.php?title=Wikilivros%3ACaixa_de_areia&diff=258547&oldid=258546
and used Special:AbuseFilter/test to check the following filter:
------------------------------------------------------------------------
length(added_lines) == 3 & contains_any( added_lines, "Lorem" )
------------------------------------------------------------------------
and the edit was detected.

It seems abuse filter's "added_lines" is an array and then
"length(added_lines)" is the number of items on this array.

Such a behavior is not documented at
https://www.mediawiki.org/wiki/Extension:AbuseFilter/Rules_format
and it is not obvious from
https://pt.wikibooks.org/w/index.php?title=Especial:Filtro_de_abusos/examine/262215&testfilter=length%28added_lines%29+%3D%3D+3+%26+contains_any%28+added_lines%2C+%22Lorem%22+%29%0A

that the value of "added_lines" is an array (not an string).

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to