summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZach Copley <zach@status.net>2010-10-25 11:52:17 -0700
committerZach Copley <zach@status.net>2010-10-25 11:52:17 -0700
commit3954ab39ae068a98f6b25720981a3505f27cd271 (patch)
tree24629e3dc21d6aeaf2c752aa65be11cc86c8357e
parent82c280979d17c3c719026f1618ab0b608a4ebcf7 (diff)
Add OAuth token exchange endpoint to 'sensitive' array; i.e.: use SSL if
available
-rw-r--r--lib/util.php12
1 files changed, 11 insertions, 1 deletions
diff --git a/lib/util.php b/lib/util.php
index 86380af28..d1c084e2e 100644
--- a/lib/util.php
+++ b/lib/util.php
@@ -1080,7 +1080,17 @@ function common_local_url($action, $args=null, $params=null, $fragment=null, $ad
function common_is_sensitive($action)
{
- static $sensitive = array('login', 'register', 'passwordsettings', 'api');
+ static $sensitive = array(
+ 'login',
+ 'register',
+ 'passwordsettings',
+ 'api',
+ 'ApiOauthRequestToken',
+ 'ApiOauthAccessToken',
+ 'ApiOauthAuthorize',
+ 'showapplication',
+ 'editapplication'
+ );
$ssl = null;
if (Event::handle('SensitiveAction', array($action, &$ssl))) {