Commit 353e7fc0 authored by lpsolit%gmail.com's avatar lpsolit%gmail.com

Bug 300093: index.cgi remains unsecure when the SSL parameter is set to…

Bug 300093: index.cgi remains unsecure when the SSL parameter is set to "authenticated sessions" - Patch by Frédéric Buclin <LpSolit@gmail.com> r/a=justdave
parent f4966aeb
......@@ -43,6 +43,12 @@ Bugzilla->login(LOGIN_OPTIONAL);
###############################################################################
my $cgi = Bugzilla->cgi;
# Force to use HTTPS unless Param('ssl') equals 'never'.
# This is required because the user may want to log in from here.
if (Param('sslbase') ne '' and Param('ssl') ne 'never') {
$cgi->require_https(Param('sslbase'));
}
my $template = Bugzilla->template;
# Return the appropriate HTTP response headers.
......
......@@ -29,7 +29,7 @@
<div id="links-actions">
<div class="label">Actions:</div>
<div class="links">
<a href="[% Param('urlbase') %]">Home</a> |
<a href="./">Home</a> |
<a href="enter_bug.cgi">New</a> |
<a href="query.cgi">Search</a> |
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment