]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Relax restrictions on URL validation for oauth_callback. We need to
authorZach Copley <zach@status.net>
Tue, 19 Oct 2010 19:29:21 +0000 (19:29 +0000)
committerZach Copley <zach@status.net>
Tue, 19 Oct 2010 19:29:21 +0000 (19:29 +0000)
allow custom schemes like mustard:// etc.

actions/apioauthrequesttoken.php

index 7def1aa95ce9441c93ac094bd0a536c33687bf4a..3765671256fed83af6e0ac8a054bd9a62d616038 100644 (file)
@@ -154,10 +154,7 @@ class ApiOauthRequestTokenAction extends ApiOauthAction
 
             return true;
         } else {
-            return Validate::uri(
-                $callback,
-                array('allowed_schemes' => array('http', 'https'))
-            );
+            return Validate::uri($callback);
         }
     }