|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #65941 SBS Incorrectly Includes Data when Content Type: multipart/form-data
Submitted: 2013-10-21 18:07 UTC Modified: -
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: tim at timlytle dot net Assigned:
Status: Open Package: oauth (PECL)
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: tim at timlytle dot net
New email:
PHP Version: OS:


 [2013-10-21 18:07 UTC] tim at timlytle dot net
Only POST requests with a content-type of 'application/x-www-form-urlencoded' should include the  POST parameters in the SMS according to the oAuth documentation:

However, on requests with a content-type of 'multipart/form-data' the OAuthProvider outputs a debug SBS *including* all parameters except files. 

Test script:
//without this, SBS won't match the client's
if($contentType !== 'application/x-www-form-urlencoded'){
    foreach($_POST as $name => $value){
        $provider->setParam($name, null); //don't include


Add a Patch

Pull Requests

Add a Pull Request

PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue May 28 20:01:31 2024 UTC