From a665ebafa41541477391734ff763bdd1fab71880 Mon Sep 17 00:00:00 2001 From: thorsten23 Date: Sat, 14 Mar 2015 19:55:36 +0100 Subject: [PATCH] Replaced 'q' by 'pagename' so that the basestring is encoded right. The correct basestring is needed to create the right signature in the OAuth authentication process. --- library/OAuth1.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/OAuth1.php b/library/OAuth1.php index 994962a858..a2097be064 100644 --- a/library/OAuth1.php +++ b/library/OAuth1.php @@ -293,8 +293,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);