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

       Web browser: ---
            Bug ID: 50107
           Summary: AbuseFilter's "length" is completely wrong!
           Product: MediaWiki extensions
           Version: unspecified
          Hardware: All
               URL: https://pt.wikibooks.org/w/index.php?title=Especial:Fi
                    ltro_de_abusos/examine/262161&testfilter=length%28adde
                    d_lines%29+%3C%3D+15+%26+summary+%3D%3D+%22%2ATHIS+IS+
                    A+BUG+ON+ABUSE+FILTER%21%22
                OS: All
            Status: NEW
          Severity: major
          Priority: Unprioritized
         Component: AbuseFilter
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected]
    Classification: Unclassified
   Mobile Platform: ---

1. Create a page with "{{this is}}"
2. Edit the page and replace its content by "*THIS IS A BUG ON ABUSE FILTER!":
https://pt.wikibooks.org/wiki/Project:Caixa_de_areia?diff=258499
3. Open [[Special:AbuseFilter/test]], which in my case was
https://pt.wikibooks.org/wiki/Special:AbuseFilter/test?uselang=en
4. Type
------------------------------------------------------------------------
length(added_lines) <= 2 & contains_any( added_lines, "THIS IS A BUG" )
------------------------------------------------------------------------
5. Click "Test" and bang! The edit is detected! If it is of any help, here is
the link provided to "examine" the edit:
https://pt.wikibooks.org/w/index.php?title=Especial:Filtro_de_abusos/examine/262161&testfilter=length%28added_lines%29+%3D%3D+1+%26+contains_any%28+added_lines%2C+"THIS+IS+A+BUG"+%29%0A&uselang=en

The filter shouldn't detect it, because "added_lines" obviously has a lot more
than 2 characters. Nonetheless, if I replace "<= 2" by "== 1" it is still
detected.

How can a string of 31 characters have length 1? This is plain wrong...

-- 
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