]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 300093: index.cgi remains unsecure when the SSL parameter is set to "authenticate...
authorlpsolit%gmail.com <>
Mon, 22 Aug 2005 02:27:40 +0000 (02:27 +0000)
committerlpsolit%gmail.com <>
Mon, 22 Aug 2005 02:27:40 +0000 (02:27 +0000)
index.cgi
template/en/default/global/useful-links.html.tmpl

index bc3a1272fcbf627d2212e0bebe7e3a9118564526..694292fc7bf0446d6ffab3793011633881125c96 100755 (executable)
--- a/index.cgi
+++ b/index.cgi
@@ -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.
index 5a01a5703dce37381474ef144716507febe2da53..2ac89f91c6d3af5082ec62d553b88cd19cd06592 100644 (file)
@@ -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> |