Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Calling OAuth_Request::as_url must always include the OAuth parameters

  • Loading branch information...
commit 80983d4a42cc88be312a52b6a7a78e8476520af6 1 parent b3c6e83
Woody Gilk shadowhand authored
Showing with 4 additions and 3 deletions.
  1. +4 −3 classes/kohana/oauth/request.php
7 classes/kohana/oauth/request.php
View
@@ -326,11 +326,12 @@ public function as_header()
*
* [!!] This method implements [OAuth 1.0 Spec 5.2 (2,3)](http://oauth.net/core/1.0/#rfc.section.5.2).
*
+ * @param boolean include oauth parameters
* @return string
*/
- public function as_query()
+ public function as_query($include_oauth = NULL)
{
- if ($this->send_header)
+ if ($include_oauth !== TRUE AND $this->send_header)
{
// If we are sending a header, OAuth parameters should not be
// included in the query string.
@@ -363,7 +364,7 @@ public function as_query()
*/
public function as_url()
{
- return $this->url.'?'.$this->as_query();
+ return $this->url.'?'.$this->as_query(TRUE);
}
/**
Please sign in to comment.
Something went wrong with that request. Please try again.