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'.

This commit is contained in:
zotlabs
2018-08-26 23:00:31 -07:00
parent 7018da3f12
commit 9367e9fe5a
11 changed files with 19 additions and 19 deletions
+2 -2
View File
@@ -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);
}