https://bugzilla.wikimedia.org/show_bug.cgi?id=66032
Bug ID: 66032
Summary: AbuseFilter should allow storing regex matches into
variables
Product: MediaWiki extensions
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: Unprioritized
Component: AbuseFilter
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected]
Web browser: ---
Mobile Platform: ---
The motivation for this request is the following task:
A user creates a named reference (e.g. <ref name="something">...</ref>) and
uses it throughout a page (e.g. <ref name="something"/> ...). Later, another
user edits the page, and removes the first definition of that named reference.
This causes all subsequent uses to return an error.
The idea is to create an abuse filter that can (a) detect when a named
reference is removed, (b) detect that value of the "name" parameter of that
reference, and (c) check to see if any other reference tags using the same name
parameter exist throughout the page.
Parts a and c are very easy. Part b is only possible if you can store the
output of a regular expression match into a variable. Currently, the only regex
function allowed by AbuseFilter is rcount, which doesn't serve this purpose.
--
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