Skip to content

Instantly share code, notes, and snippets.

@rexxars
Created March 5, 2012 19:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rexxars/1980516 to your computer and use it in GitHub Desktop.
Save rexxars/1980516 to your computer and use it in GitHub Desktop.
Zend_Oauth_Client
Index: Oauth/Client.php
===================================================================
--- Oauth/Client.php (revision 43)
+++ Oauth/Client.php (working copy)
@@ -310,7 +310,8 @@
$this->getUri(true), $this->_config, $params
);
}
- if (!empty($this->paramsPost)) {
+ if (!empty($this->paramsPost) && $this->enctype != self::ENC_FORMDATA) {
+
$params = array_merge($params, $this->paramsPost);
$query = $this->getToken()->toQueryString(
$this->getUri(true), $this->_config, $params
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment