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

       Web browser: ---
            Bug ID: 46404
           Summary: added_lines does not work in AbuseFilter
           Product: MediaWiki
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: General/Unknown
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    Classification: Unclassified
   Mobile Platform: ---

For some unknown reason The rules that I copy from wikipedia do not work in my
wiki. 

!("bot" in user_groups) & !("sysop" in user_groups) & action == "edit" & 
(article_namespace == 0) & 
(count("[[", added_lines) != count("]]", added_lines) & 
count("[", added_lines) != count("]", added_lines) | 
(("[[]" in added_lines) | ("[]]" in added_lines)))

this rule still working in zh ver wikipedia but not in my wiki

MediaWiki    1.20.3
PHP    5.4.9 (fpm-fcgi)
MySQL    5.5.28-debug



We have to replace added_lines to new_wikitext. Any idea about why this happen?


!("sysop" in user_groups) & action == "edit" & 
(article_namespace == 0) & 
(count("[[", new_wikitext) != count("]]", new_wikitext) & 
count("[", new_wikitext) != count("]", new_wikitext) | 
(("[[]" in new_wikitext) | ("[]]" in new_wikitext)))

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

Reply via email to