Last modified: 2010-05-15 15:42:54 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 8567 - action=raw hook
action=raw hook
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
General/Unknown (Other open bugs)
1.8.x
PC All
: Normal enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2007-01-10 16:33 UTC by Thomas
Modified: 2010-05-15 15:42 UTC (History)
0 users

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


Attachments

Description Thomas 2007-01-10 16:33:05 UTC
I wish for a hook to modify raw access to article data. This may be helpful to
prevent automatic content grabbing by bots for example.
Comment 1 Leon Weber 2007-01-10 16:37:42 UTC
Where should that hook be placed? What do you want to do with it/what parameter
should it pass?
Comment 2 Thomas 2007-01-10 17:01:26 UTC
I want to replace text or textparts. Or better I hope to implement the following:

if ( !userIsLoggedin && !userIsBot ) {

addHook("rawEdit", "methodX");

}
...

methodX(string rawData) {

return "you are a bad robot";
}
Comment 3 Rob Church 2007-01-10 17:29:41 UTC
Do we not have a generic action handler override hook? If not, do we want one?
If so, then implement that, rather than this. :)
Comment 4 Leon Weber 2007-01-11 14:55:03 UTC
So I fixed that one (r19117), as I couldn't see that someone's going to write
Rob's super hook :)


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


Navigation
Links