X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=library%2FOAuth1.php;h=c537f2b252f7db0c8f69967859702bbbb4f30093;hb=2022d0e812d191acd47b8408f933dfb726a21b92;hp=994962a8587a1a0e0be72d8a246502e9dedfc90f;hpb=da9f20f3899ff3cc53e4f8c61ee0de0bf64a4ab7;p=friendica.git diff --git a/library/OAuth1.php b/library/OAuth1.php index 994962a858..c537f2b252 100644 --- a/library/OAuth1.php +++ b/library/OAuth1.php @@ -3,10 +3,8 @@ /* Generic exception class */ -if (!class_exists('OAuthException')) { - class OAuthException extends Exception { - // pass - } +class OAuthException extends Exception { + // pass } class OAuthConsumer { @@ -293,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);