Last modified: 2012-09-24 22:13: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 T42291, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 40291 - Antibot update
Antibot update
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
Other (Other open bugs)
master
All All
: Unprioritized normal (vote)
: ---
Assigned To: Nobody - You can work on this!
: easy, patch-need-review
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-09-17 02:37 UTC by Betacommand
Modified: 2012-09-24 22:13 UTC (History)
1 user (show)

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


Attachments
patch (1.04 KB, text/plain)
2012-09-17 02:37 UTC, Betacommand
Details
v2 (896 bytes, text/plain)
2012-09-17 03:58 UTC, Sam Reed (reedy)
Details
v3 (832 bytes, text/plain)
2012-09-17 04:00 UTC, Sam Reed (reedy)
Details

Description Betacommand 2012-09-17 02:37:10 UTC
Created attachment 11115 [details]
patch

Patch to enable users with bot rights to be excluded from antibots GenericFormEncoding
Comment 1 Sam Reed (reedy) 2012-09-17 03:58:04 UTC
Created attachment 11116 [details]
v2

Tidied up and simplified...

You want to maybe use $wgRequest... Does the function_exists wrapper call for you and generally looks neater..

$wgRequest->initHeaders();
$header = $wgRequest->getHeader( 'Content-Type' );

if ( $header === 'application/x-www-form-urlencoded' ) {
Comment 2 Sam Reed (reedy) 2012-09-17 04:00:19 UTC
Created attachment 11117 [details]
v3
Comment 3 Sam Reed (reedy) 2012-09-24 22:13:57 UTC
https://gerrit.wikimedia.org/r/24943

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


Navigation
Links