From d48f4a81d6af7a9a326ffc2e87d7de568ab48fbe Mon Sep 17 00:00:00 2001 From: Zach Copley Date: Tue, 19 Oct 2010 19:29:21 +0000 Subject: [PATCH] Relax restrictions on URL validation for oauth_callback. We need to allow custom schemes like mustard:// etc. --- actions/apioauthrequesttoken.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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); } }