Fixed encoding ampersand on mail alerts

This commit is contained in:
Calvo 2021-04-16 15:36:12 +02:00
parent f585e44692
commit 256d4333c6
1 changed files with 3 additions and 0 deletions

View File

@ -1322,6 +1322,9 @@ sub pandora_execute_action ($$$$$$$$$;$) {
my $cid_data = "CID_IMAGE";
my $dataname = "CID_IMAGE.png";
# Decode ampersand. Used for macros with encoded names.
$field3 =~ s/&/&/g;
if (defined($data) && $data =~ /^data:image\/png;base64, /) {
# macro _data_ substitution in case is image.
$attach_data_as_image = 1;