From 9367e9fe5a0125bf4c2f77909f2789c9dcd41e1e Mon Sep 17 00:00:00 2001 From: zotlabs Date: Sun, 26 Aug 2018 23:00:31 -0700 Subject: Change main router request variable from 'q' to 'req'. This is necessary to implement search in the twitter api addon, because twitter requires use of the variable 'q'. --- library/OAuth1.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'library') diff --git a/library/OAuth1.php b/library/OAuth1.php index 0a6b20b0a..e70cf0a1b 100644 --- a/library/OAuth1.php +++ b/library/OAuth1.php @@ -293,8 +293,8 @@ class OAuth1Request { } // fix for friendica redirect system // FIXME or don't, but figure out if this is absolutely necessary and act accordingly - $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['req'])+strlen($parameters['req'])); + unset( $parameters['req'] ); return new OAuth1Request($http_method, $http_url, $parameters); } -- cgit v1.2.3