X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=actions%2Fapioauthrequesttoken.php;h=e961f4f46464cf8463af219ba41a45f5a0cfb460;hb=d58de59c18bddbb8b99d30dbe250261e0e98a94b;hp=b9346a9e87d5f08e671506b4099c9bbfa6aa6204;hpb=cc34bb48c7243f78e198ad4d8c1806d5fe886a81;p=quix0rs-gnu-social.git diff --git a/actions/apioauthrequesttoken.php b/actions/apioauthrequesttoken.php index b9346a9e87..e961f4f464 100644 --- a/actions/apioauthrequesttoken.php +++ b/actions/apioauthrequesttoken.php @@ -73,7 +73,7 @@ class ApiOAuthRequestTokenAction extends ApiOAuthAction { parent::handle($args); - $datastore = new ApiGNUSocialOAuthDataStore(); + $datastore = new ApiGNUsocialOAuthDataStore(); $server = new OAuthServer($datastore); $hmac_method = new OAuthSignatureMethod_HMAC_SHA1(); @@ -146,7 +146,7 @@ class ApiOAuthRequestTokenAction extends ApiOAuthAction return true; } else { - return Validate::uri($callback); + return filter_var($callback, FILTER_VALIDATE_URL); } } }