Last modified: 2010-05-15 15:42:54 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 T10567, the corresponding Phabricator task for complete and up-to-date bug report information.
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