summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZach Copley <zach@status.net>2010-10-19 19:29:21 +0000
committerZach Copley <zach@status.net>2010-10-19 19:29:21 +0000
commitd48f4a81d6af7a9a326ffc2e87d7de568ab48fbe (patch)
treeb686f4beafbba624fc3292a924ca0165f1103380
parent5ac694c74f1f37f8742d34efbff5e8a763090c9e (diff)
Relax restrictions on URL validation for oauth_callback. We need to
allow custom schemes like mustard:// etc.
-rw-r--r--actions/apioauthrequesttoken.php5
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);
}
}