mirror of
https://github.com/webmin/webmin.git
synced 2025-07-20 16:48:46 +00:00
Allow use of ~ in autoreply file
This commit is contained in:
@ -154,6 +154,9 @@ if ($header{'x-original-to'} && $rheader{'No-Forward-Reply'}) {
|
||||
# Open the replies tracking DBM, if one was set
|
||||
my $rtfile = $rheader{'Reply-Tracking'};
|
||||
if ($rtfile) {
|
||||
if ($rtfile =~ /^~/) {
|
||||
$rtfile =~ s/^~/$ENV{'HOME'}/;
|
||||
}
|
||||
if ($rtfile !~ /^\//) {
|
||||
$rtfile = $ENV{'HOME'}.'/'.$rtfile;
|
||||
}
|
||||
|
@ -10,6 +10,7 @@ if (substr($in{'file'}, 0, length($access{'apath'})) ne $access{'apath'}) {
|
||||
&error(&text('rfile_efile', $in{'file'}));
|
||||
}
|
||||
$in{'replies_def'} || $in{'replies'} =~ /^\/\S+/ ||
|
||||
$in{'replies'} =~ /^~\/\S+/ ||
|
||||
&error($text{'rfile_ereplies'});
|
||||
$in{'period_def'} || $in{'period'} =~ /^\d+$/ ||
|
||||
&error($text{'rfile_eperiod'});
|
||||
|
Reference in New Issue
Block a user