X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=index.php;h=5a08aa07825c4d11b87a2e726c81c1db5be8b4ee;hb=283d56bed338ca2a6852a1ae50cf8d5ded4c9fef;hp=21e222e3b803c2d45e7dae07511b84eed66a0bf6;hpb=5c4723919fa757b3e14a59350415cfe53e0900d1;p=quix0rs-gnu-social.git diff --git a/index.php b/index.php index 21e222e3b8..5a08aa0782 100644 --- a/index.php +++ b/index.php @@ -283,6 +283,14 @@ function main() return; } + $site_ssl = common_config('site', 'ssl'); + + // If the request is HTTP and it should be HTTPS... + if ($site_ssl != 'never' && !StatusNet::isHTTPS() && common_is_sensitive($args['action'])) { + common_redirect(common_local_url($args['action'], $args)); + return; + } + $args = array_merge($args, $_REQUEST); Event::handle('ArgsInitialize', array(&$args));