Compare commits

..

10 Commits
2.300 ... 2.301

Author SHA1 Message Date
Jamie Cameron
718c2f0b3c New version bump 2025-02-16 16:25:52 -08:00
Jamie Cameron
5760fb1c26 Make simplify_date always return HTML, and remove the eucconv call that's not useful for dates 2025-02-16 16:11:15 -08:00
Jamie Cameron
2e409c8647 Merge branch 'master' of github.com:webmin/webmin 2025-02-16 15:17:50 -08:00
Jamie Cameron
2cd5cfb4e3 Forwarding destination could be an IPv6 address https://github.com/webmin/webmin/issues/2413 2025-02-16 15:17:44 -08:00
Ilia Ross
234f86b3fd 2.301 2025-02-16 20:41:24 +02:00
Ilia Ross
49465bef61 Fix to check correctly if ProFTPD is installed #2410 2025-02-16 19:19:43 +02:00
Ilia Ross
db7d2f5389 Merge pull request #2412 from TheBeaconCrafter/fix-mysql-typo
Fix MySQL typo #2411
2025-02-16 17:41:29 +02:00
Vincent Wackler
d48fcd940b Fix MySQL typo #2411 2025-02-16 14:10:32 +01:00
Ilia Ross
d6f48578d7 Fix to stop HTML escaping our own API 2025-02-16 13:39:01 +02:00
Ilia Ross
5634ac292a Fix the line height of plain-text email body text 2025-02-16 13:30:44 +02:00
9 changed files with 17 additions and 11 deletions

View File

@@ -1,5 +1,10 @@
## Changelog
#### 2.301 (February 16, 2025)
* Fix to check correctly if ProFTPD is installed #2410
* Fix to properly escape HTML in date fields
* Fix the line height of plain-text email body
#### 2.300 (February 14, 2025)
* Add multiple improvements to SSH Server module to support contemporary systems
* Add support to configure SSH socket activation in SSH Server module in contemporary systems #2356

View File

@@ -36,6 +36,7 @@ else {
my $dstaddr;
if (!$in{'dstaddr_def'}) {
&check_ipaddress($in{'dstaddr'}) ||
&check_ip6address($in{'dstaddr'}) ||
&error($text{'forward_edstaddr'});
$dstaddr = $in{'dstaddr'};
}

View File

@@ -1 +1 @@
body{font: 13px/1.231 arial,helvetica,clean,sans-serif;}body blockquote:not([style*="border-left"]){border-left:1px solid #ccc;margin-left:6px;margin-top:0;margin-bottom:0;padding-left:12px;}pre{white-space:break-spaces;margin:0 0 4px 0;font-size: 12px;line-height:0.6;padding-top:0.3em;}p{margin:0;line-height:1.333}p:has(>br:only-child){line-height:0.666!important;}
body{font: 13px/1.231 arial,helvetica,clean,sans-serif;}body blockquote:not([style*="border-left"]){border-left:1px solid #ccc;margin-left:6px;margin-top:0;margin-bottom:0;padding-left:12px;}pre{white-space:break-spaces;margin:0 0 4px 0;font-size: 12px;line-height:1.5;padding-top:0.3em;}p{margin:0;line-height:1.333}p:has(>br:only-child){line-height:0.666!important;}

View File

@@ -1471,7 +1471,8 @@ return $data;
}
# simplify_date(datestring, [format])
# Given a date from an email header, convert to the user's preferred format
# Given a date from an email header, convert to the user's preferred format and
# return it as an HTML string
sub simplify_date
{
local ($date, $fmt) = @_;
@@ -1494,12 +1495,12 @@ if ($u) {
}
}
elsif ($date =~ /^(\S+),\s+0*(\d+)\s+(\S+)\s+(\d+)\s+(\d+):(\d+)/) {
return "$2/$3/$4 $5:$6";
return &html_escape("$2/$3/$4 $5:$6");
}
elsif ($date =~ /^0*(\d+)\s+(\S+)\s+(\d+)\s+(\d+):(\d+)/) {
return "$1/$2/$3 $4:$5";
return &html_escape("$1/$2/$3 $4:$5");
}
return $date;
return &html_escape($date);
}
# simplify_from(from)

View File

@@ -1221,7 +1221,7 @@ foreach my $mail (@mail) {
}
# Date and size columns
push(@cols, &eucconv_and_escape(&simplify_date($mail->{'header'}->{'date'})));
push(@cols, &simplify_date($mail->{'header'}->{'date'}));
push(@cols, &nice_size($mail->{'size'}, 1024));
$rowtds[$#cols] .= " data-sort=".&parse_mail_date($mail->{'header'}->{'date'});

View File

@@ -140,8 +140,7 @@ else {
&address_link($mail->{'header'}->{'cc'}));
}
print &ui_table_row($text{'mail_date'},
&eucconv_and_escape(
&simplify_date($mail->{'header'}->{'date'})));
&simplify_date($mail->{'header'}->{'date'}));
print &ui_table_row($text{'mail_subject'},
&convert_header_for_display($mail->{'header'}->{'subject'}));
}

View File

@@ -9,7 +9,7 @@ index_pass=Password
index_clear=Clear
index_stop=Stop MySQL Server
index_stopmsg=Click this button to stop the MySQL database server on your system. This will prevent any users or programs from accessing the database, including this Webmin module.
index_restart=Resart MySQL Server
index_restart=Restart MySQL Server
index_restartmsg=Click this button to restart the MySQL database server on your system. All clients will be disconnected, and any configuration files will be reloaded.
index_dbs=MySQL Databases
index_add=Create a new database.

View File

@@ -5,7 +5,7 @@
require './proftpd-lib.pl';
# Check if proftpd is installed
if (&has_command($config{'proftpd_path'})) {
if (!&has_command($config{'proftpd_path'})) {
&ui_print_header(undef, $text{'index_title'}, "", undef, 1, 1, 0,
&help_search_link("proftpd", "man", "doc", "google"));
print &text('index_eproftpd', "<tt>$config{'proftpd_path'}</tt>",

View File

@@ -1 +1 @@
2.300
2.301