Last modified: 2013-09-04 21:26:32 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 T54481, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 52481 - OAuth can't validate http parameters with spaces in the name
OAuth can't validate http parameters with spaces in the name
Status: RESOLVED INVALID
Product: MediaWiki extensions
Classification: Unclassified
OAuth (Other open bugs)
unspecified
All All
: Unprioritized enhancement (vote)
: ---
Assigned To: Chris Steipp
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-08-02 20:42 UTC by Chris Steipp
Modified: 2013-09-04 21:26 UTC (History)
3 users (show)

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


Attachments

Description Chris Steipp 2013-08-02 20:42:59 UTC
MediaWiki appears to normalize spaces in names to _, before extensions are able to read the original names.
Comment 1 Brad Jorsch 2013-08-05 14:53:40 UTC
Actually it's PHP mangling the names, as the same behavior is seen in a four-line test page that just echos back $_GET and $_POST.

 <?php
 header( 'Content-Type: text/plain' );
 var_dump($_GET);
 var_dump($_POST);

Besides space, this also affects period and open-bracket (and ASCII NUL truncates the key), at least in PHP 5.5.1 on my local system. With respect to periods and spaces, this behavior is mentioned at http://www.php.net/manual/en/language.variables.external.php.
Comment 2 Chris Steipp 2013-09-04 21:26:32 UTC
Changed back to getting the raw POST and parsing it ourselves, so this is no longer an issue.

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


Navigation
Links