Last modified: 2009-04-01 05:05:57 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T20252, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 18252 - AbuseFilter string manipulation
AbuseFilter string manipulation
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
AbuseFilter (Other open bugs)
unspecified
All All
: Normal enhancement with 1 vote (vote)
: ---
Assigned To: Andrew Garrett
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-03-30 08:34 UTC by MacGyverMagic
Modified: 2009-04-01 05:05 UTC (History)
1 user (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description MacGyverMagic 2009-03-30 08:34:26 UTC
The way the AbuseFilter is currently set, results in an error whenever I try to introduce a new variable that is not preset. Presumably this is a safeguard to avoid too much stress on the servers, but it proves particular complicated when I try to do string manipulations. 

I want to match the title (article_text) of an article that has a modifier in it -- like [[11 (number)]] or [[Titanic (film)]]. There should be a function available that:
1. Allows us to make a match, then use the non-matched material to go on.
2. Allows us to remove a match from the initial string before further actions occur.
Comment 1 MacGyverMagic 2009-03-31 10:40:25 UTC
In addition to allowing some limited form of string manipulation it would also be nice to have something that allows checking the existence of another article that is related, but not being edited. For example, checking to see if a link that is being redirected to exists or if [[Foobar]] exists when someone tries to create [[Foobar (disambiguation)]].
Comment 2 Andrew Garrett 2009-04-01 05:05:57 UTC
Added strpos, str_replace, substr functions in r49109. Please let me know if you want any more.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links