X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=index.php;h=ecbfb3eb7b1d692e46d47ba2ae50cfc9fa13a4c3;hb=4bf26eff4ccf96624f47ac27be51c6de221f7f01;hp=de57f1078dc407e2532ad58d1b81750ccf2a8c23;hpb=367fc054dcf9cbcfb87fec987219d0810a1c8b9c;p=quix0rs-gnu-social.git diff --git a/index.php b/index.php index de57f1078d..ecbfb3eb7b 100644 --- a/index.php +++ b/index.php @@ -266,10 +266,8 @@ function main() $args = $r->map($path); - $site_ssl = common_config('site', 'ssl'); - // If the request is HTTP and it should be HTTPS... - if ($site_ssl != 'never' && !GNUsocial::isHTTPS() && common_is_sensitive($args['action'])) { + if (GNUsocial::useHTTPS() && !GNUsocial::isHTTPS()) { common_redirect(common_local_url($args['action'], $args)); }