X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=library%2FOAuth1.php;h=c537f2b252f7db0c8f69967859702bbbb4f30093;hb=7230cc0bed112094c0d1a5d5c8cffbe44cd85110;hp=0db6fabcbe8c490f06885e3213d465712ee642e8;hpb=6edd6d8ae1e3a6b64fa11ae6a4cc79965084b0d7;p=friendica.git diff --git a/library/OAuth1.php b/library/OAuth1.php old mode 100755 new mode 100644 index 0db6fabcbe..c537f2b252 --- a/library/OAuth1.php +++ b/library/OAuth1.php @@ -291,8 +291,8 @@ class OAuthRequest { } // fix for friendica redirect system - $http_url = substr($http_url, 0, strpos($http_url,$parameters['q'])+strlen($parameters['q'])); - unset( $parameters['q'] ); + $http_url = substr($http_url, 0, strpos($http_url,$parameters['pagename'])+strlen($parameters['pagename'])); + unset( $parameters['pagename'] ); //echo "
".__function__."\n"; var_dump($http_method, $http_url, $parameters, $_SERVER['REQUEST_URI']); killme();
     return new OAuthRequest($http_method, $http_url, $parameters);
@@ -421,8 +421,11 @@ class OAuthRequest {
   /**
    * builds the data one would send in a POST request
    */
-  public function to_postdata() {
-    return OAuthUtil::build_http_query($this->parameters);
+  public function to_postdata($raw = false) {
+    if ($raw)
+      return($this->parameters);
+    else
+      return OAuthUtil::build_http_query($this->parameters);
   }
 
   /**