forked from GNUsocial/gnu-social
Add OAuth token exchange endpoint to 'sensitive' array; i.e.: use SSL if
available
This commit is contained in:
parent
82c280979d
commit
3954ab39ae
12
lib/util.php
12
lib/util.php
@ -1080,7 +1080,17 @@ function common_local_url($action, $args=null, $params=null, $fragment=null, $ad
|
|||||||
|
|
||||||
function common_is_sensitive($action)
|
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;
|
$ssl = null;
|
||||||
|
|
||||||
if (Event::handle('SensitiveAction', array($action, &$ssl))) {
|
if (Event::handle('SensitiveAction', array($action, &$ssl))) {
|
||||||
|
Loading…
Reference in New Issue
Block a user