X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=plugins%2FTwitterBridge%2FTwitterBridgePlugin.php;h=0a887168539bfac69cf671bc6e47c71aad1c2293;hb=19df5c9b5049202812fe0f5713e295b597e067d4;hp=26ddb3ceab4e81b1c462a2d89e2302f8a7126afb;hpb=2c5cba28b6a8e13a58fe7584835340aa9779b146;p=quix0rs-gnu-social.git diff --git a/plugins/TwitterBridge/TwitterBridgePlugin.php b/plugins/TwitterBridge/TwitterBridgePlugin.php index 26ddb3ceab..0a88716853 100644 --- a/plugins/TwitterBridge/TwitterBridgePlugin.php +++ b/plugins/TwitterBridge/TwitterBridgePlugin.php @@ -323,31 +323,6 @@ class TwitterBridgePlugin extends Plugin return (bool)$this->adminImportControl; } - /** - * When the site is set to ssl=sometimes mode, we should make sure our - * various auth-related pages are on SSL to keep things looking happy. - * Although we're not submitting passwords directly, we do link out to - * an authentication source and it's a lot happier if we've got some - * protection against MitM. - * - * @param string $action name - * @param boolean $ssl outval to force SSL - * @return mixed hook return value - */ - function onSensitiveAction($action, &$ssl) - { - $sensitive = array('twitteradminpanel', - 'twittersettings', - 'twitterauthorization', - 'twitterlogin'); - if (in_array($action, $sensitive)) { - $ssl = true; - return false; - } else { - return true; - } - } - /** * Database schema setup *