From: Zach Copley Date: Tue, 19 Oct 2010 19:29:21 +0000 (+0000) Subject: Relax restrictions on URL validation for oauth_callback. We need to X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=d48f4a81d6af7a9a326ffc2e87d7de568ab48fbe;p=quix0rs-gnu-social.git Relax restrictions on URL validation for oauth_callback. We need to allow custom schemes like mustard:// etc. --- diff --git a/actions/apioauthrequesttoken.php b/actions/apioauthrequesttoken.php index 7def1aa95c..3765671256 100644 --- a/actions/apioauthrequesttoken.php +++ b/actions/apioauthrequesttoken.php @@ -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); } }