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:
+2
-2
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user