Merge branch 'master' of github.com:webmin/webmin into master

This commit is contained in:
Ilia Rostovtsev
2020-11-30 12:58:41 +03:00
3 changed files with 5 additions and 3 deletions

View File

@@ -2907,7 +2907,7 @@ local $mail = { 'headers' =>
[ [ 'From', $from ],
[ 'To', $to ],
[ 'Cc', $cc ],
[ 'Subject', $subject ] ],
[ 'Subject', &encode_mimewords($subject) ] ],
'attach' => [ $attach ] };
return &send_mail($mail, undef, 1, 0, $smtp);
}

View File

@@ -76,7 +76,8 @@ print &ui_table_row($text{'users_root'},
&ui_select("root", lc($root), \@opts));
# SSH 1 RSA authentication
if ($version{'type'} ne 'ssh' || $version{'number'} < 3) {
if (($version{'type'} eq 'ssh' && $version{'number'} < 3) ||
($version{'type'} eq 'openssh' && $version{'number'} < 7.3)) {
$rsa = &find_value("RSAAuthentication", $conf);
print &ui_table_row($text{'users_rsa'},
&ui_yesno_radio('rsa', lc($rsa) ne 'no'));

View File

@@ -47,7 +47,8 @@ if ($version{'type'} ne 'ssh' || $version{'number'} < 3) {
&save_directive("PermitRootLogin", $conf, $in{'root'});
if ($version{'type'} ne 'ssh' || $version{'number'} < 3) {
if (($version{'type'} eq 'ssh' && $version{'number'} < 3) ||
($version{'type'} eq 'openssh' && $version{'number'} < 7.3)) {
&save_directive("RSAAuthentication", $conf, $in{'rsa'} ? 'yes' : 'no');
}
if ($version{'type'} eq 'openssh' && $version{'number'} >= 3) {