]> git.mxchange.org Git - friendica.git/commitdiff
Replaced 'q' by 'pagename' so that the basestring is encoded right. The correct bases...
authorthorsten23 <thorsten.schmidt23@mailbox.org>
Sat, 14 Mar 2015 18:55:36 +0000 (19:55 +0100)
committerthorsten23 <thorsten.schmidt23@mailbox.org>
Sat, 14 Mar 2015 18:55:36 +0000 (19:55 +0100)
library/OAuth1.php

index 994962a8587a1a0e0be72d8a246502e9dedfc90f..a2097be064b2c78cf698d733e9ce0cbcb3daa175 100644 (file)
@@ -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 "<pre>".__function__."\n"; var_dump($http_method, $http_url, $parameters, $_SERVER['REQUEST_URI']); killme();
     return new OAuthRequest($http_method, $http_url, $parameters);