Last modified: 2009-07-02 18:50:38 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 T21300, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 19300 - Adapt abuse filter parser to be inline included in wikitext
Adapt abuse filter parser to be inline included in wikitext
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
Extensions requests (Other open bugs)
unspecified
All All
: Normal enhancement with 1 vote (vote)
: ---
Assigned To: Victor Vasiliev
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-06-19 20:04 UTC by Victor Vasiliev
Modified: 2009-07-02 18:50 UTC (History)
1 user (show)

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


Attachments

Description Victor Vasiliev 2009-06-19 20:04:51 UTC
Since Lua extension (bug 19298) requires either PECL extension or exec(), it might be good to adapt existing abuse filter parser to be used in the wikitext. That would require:
1) optimizing parser by using a better algorithm;
2) making parser DoS-safe (different limits, disabling regexes, etc.);
3) adding functions to allow script to interact with parser:
 * parse('some wikitext') to parse wikitext within the code context;
 * argument('name', 'defaultvalue') to get a template argument;
 * template('name', 'argument1', 'argument2', 'argumentname' = 'argumentvalue') to invoke templates from the code.

I'll start working on it as soon as I finish RestrictUser.
Comment 1 Victor Vasiliev 2009-07-02 18:50:38 UTC
Extension commited in r52717 (still needs to be cleaned up).

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


Navigation
Links