aboutsummaryrefslogtreecommitdiffstats
path: root/library
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2018-08-26 23:00:31 -0700
committerzotlabs <mike@macgirvin.com>2018-08-26 23:00:31 -0700
commit9367e9fe5a0125bf4c2f77909f2789c9dcd41e1e (patch)
treeaf109abdb981631e235c51fbfbf1ebcee486c1f9 /library
parent7018da3f127e9d2abdb359516d079fc038a4c2a3 (diff)
downloadvolse-hubzilla-9367e9fe5a0125bf4c2f77909f2789c9dcd41e1e.tar.gz
volse-hubzilla-9367e9fe5a0125bf4c2f77909f2789c9dcd41e1e.tar.bz2
volse-hubzilla-9367e9fe5a0125bf4c2f77909f2789c9dcd41e1e.zip
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'.
Diffstat (limited to 'library')
-rw-r--r--library/OAuth1.php4
1 files changed, 2 insertions, 2 deletions
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);
}