|  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
Have you experienced this issue?
Rate the importance of this bug to you:

 [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: Sat May 18 01:01:33 2024 UTC