From: Zach Copley Date: Mon, 25 Oct 2010 18:52:17 +0000 (-0700) Subject: Add OAuth token exchange endpoint to 'sensitive' array; i.e.: use SSL if X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=3954ab39ae068a98f6b25720981a3505f27cd271;p=quix0rs-gnu-social.git Add OAuth token exchange endpoint to 'sensitive' array; i.e.: use SSL if available --- diff --git a/lib/util.php b/lib/util.php index 86380af281..d1c084e2e7 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))) {