https://bugzilla.wikimedia.org/show_bug.cgi?id=51324
Web browser: ---
Bug ID: 51324
Summary: Provide a (reliable) way to test if a string is in a
array of strings (e.g. if a user recently edited a
page)
Product: MediaWiki extensions
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: AbuseFilter
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected]
Classification: Unclassified
Mobile Platform: ---
Created attachment 12844
--> https://bugzilla.wikimedia.org/attachment.cgi?id=12844&action=edit
Example
It is unreliable to test if a user edited a page recently with the code
----------------------------------------
user_name in article_recent_contributors
----------------------------------------
because this will test if the sring in the left is part of the other string
(which seems to be a "\n" separated list of usernames, per bug 50107 comment
3).
E.g.: if [[user:example]] is the only one who edited a page, the code above
would detect both [[user:example]] and [[user:ample]] as editors of that page.
See the screenshot
--
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