diff options
author | Zach Copley <zach@status.net> | 2010-10-19 19:29:21 +0000 |
---|---|---|
committer | Zach Copley <zach@status.net> | 2010-10-19 19:29:21 +0000 |
commit | d48f4a81d6af7a9a326ffc2e87d7de568ab48fbe (patch) | |
tree | b686f4beafbba624fc3292a924ca0165f1103380 | |
parent | 5ac694c74f1f37f8742d34efbff5e8a763090c9e (diff) |
Relax restrictions on URL validation for oauth_callback. We need to
allow custom schemes like mustard:// etc.
-rw-r--r-- | actions/apioauthrequesttoken.php | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/actions/apioauthrequesttoken.php b/actions/apioauthrequesttoken.php index 7def1aa95..376567125 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); } } |