Fix typo in Message.pm

Existing code appends $phishingtag if where is 'end' but prepends $disarmtag if where is 'start'. It should append/prepend $phishingtag in both cases
This commit is contained in:
Mark Sapiro 2016-07-21 15:21:50 -07:00 committed by GitHub
parent f84aa841a7
commit 75848cc1f8

View file

@ -5193,9 +5193,9 @@ sub DeliverUnmodifiedBody {
#print STDERR "end\n";
$global::MS->{mta}->AppendHeader($this, 'Subject:', $phishingtag, ' ');
$subjectchanged = 1;
} elsif ($where =~ /start|1/ && !$global::MS->{mta}->TextStartsHeader($this, 'Subject:', $disarmtag)) {
} elsif ($where =~ /start|1/ && !$global::MS->{mta}->TextStartsHeader($this, 'Subject:', $phishingtag)) {
#print STDERR "start\n";
$global::MS->{mta}->PrependHeader($this, 'Subject:', $disarmtag, ' ');
$global::MS->{mta}->PrependHeader($this, 'Subject:', $phishingtag, ' ');
$subjectchanged = 1;
}
#}