diff options
author | Brion Vibber <brion@pobox.com> | 2009-10-12 21:01:34 +0000 |
---|---|---|
committer | Brion Vibber <brion@pobox.com> | 2009-10-12 21:01:34 +0000 |
commit | 18df82ba2302d5b72bc42f4d3296d6fff7d16341 (patch) | |
tree | ce2f955ff860b8d7355d64391d68a0f955067ec9 /extlib/OAuth.php | |
parent | 131292472c4bca7e99ee821ae62853f36f4c7bef (diff) | |
parent | 2b6dfbdf2b9df0992018f8df1f54b4cf16185599 (diff) |
Merge branch '0.8.x' of git://gitorious.org/~brion/statusnet/brion-fixes into 0.8.x
Diffstat (limited to 'extlib/OAuth.php')
-rw-r--r-- | extlib/OAuth.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/extlib/OAuth.php b/extlib/OAuth.php index 029166175..648627b57 100644 --- a/extlib/OAuth.php +++ b/extlib/OAuth.php @@ -199,7 +199,8 @@ class OAuthRequest {/*{{{*/ } else { // collect request parameters from query string (GET) and post-data (POST) if appropriate (note: POST vars have priority) $req_parameters = $_GET; - if ($http_method == "POST" && @strstr($request_headers["Content-Type"], "application/x-www-form-urlencoded") ) { + if ($http_method == "POST" && + ( @strstr($request_headers["Content-Type"], "application/x-www-form-urlencoded") || @strstr($_ENV["CONTENT_TYPE"], "application/x-www-form-urlencoded") )) { $req_parameters = array_merge($req_parameters, $_POST); } @@ -326,7 +327,7 @@ class OAuthRequest {/*{{{*/ public function get_normalized_http_url() {/*{{{*/ $parts = parse_url($this->http_url); - $port = @$parts['port']; + $port = isset($parts['port']) ? $parts['port'] : null; $scheme = $parts['scheme']; $host = $parts['host']; $path = @$parts['path']; |