]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - actions/apioauthrequesttoken.php
Prepopulate newnotice from URL arg
[quix0rs-gnu-social.git] / actions / apioauthrequesttoken.php
index 324c30d17f0b12a5597719fb1eda108047e5de8b..e961f4f46464cf8463af219ba41a45f5a0cfb460 100644 (file)
@@ -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 common_valid_http_url($callback);
+            return filter_var($callback, FILTER_VALIDATE_URL);
         }
     }
 }