mirror of
https://github.com/webmin/webmin.git
synced 2025-07-20 16:48:46 +00:00
Fix not to show connection error if SSL is explicitly disabled
[no-build]
This commit is contained in:
@ -73,8 +73,8 @@ print &ui_form_start("@{[&get_webprefix()]}/pam_login.cgi", "post");
|
||||
print &ui_hidden("cid", $in{'cid'});
|
||||
|
||||
my $not_secure;
|
||||
if ($ENV{'HTTPS'} ne 'ON') {
|
||||
my $link = ui_tag('a', "⚠ $text{'login_notsecure'}",
|
||||
if ($ENV{'HTTPS'} ne 'ON' && $miniserv{'ssl'}) {
|
||||
my $link = ui_tag('a', "⚠ $text{'login_notsecure'}",
|
||||
{ 'href' => "javascript:void(0);",
|
||||
'class' => 'inherit-color',
|
||||
'onclick' => "window.location.href = ".
|
||||
|
@ -93,8 +93,8 @@ print &ui_form_start("@{[&get_webprefix()]}/session_login.cgi", "post");
|
||||
print &ui_hidden("page", $in{'page'});
|
||||
|
||||
my $not_secure;
|
||||
if ($ENV{'HTTPS'} ne 'ON') {
|
||||
my $link = ui_tag('a', "⚠ $text{'login_notsecure'}",
|
||||
if ($ENV{'HTTPS'} ne 'ON' && $miniserv{'ssl'}) {
|
||||
my $link = ui_tag('a', "⚠ $text{'login_notsecure'}",
|
||||
{ 'href' => "javascript:void(0);",
|
||||
'class' => 'inherit-color',
|
||||
'onclick' => "window.location.href = ".
|
||||
|
Reference in New Issue
Block a user