Do not decode session values when replacing HTML templates var (#1141)
This commit is contained in:
parent
00b18caf6c
commit
a213ff0ba0
|
@ -316,7 +316,7 @@ sub _reset {
|
|||
$body =~ s/\$expMailDate/$req->datas->{expMailDate}/ge;
|
||||
$body =~ s/\$expMailTime/$req->datas->{expMailTime}/ge;
|
||||
$body =~ s/\$url/$url/g;
|
||||
$body =~ s/\$(\w+)/decode("utf8",$req->{sessionInfo}->{$1})/ge;
|
||||
$body =~ s/\$(\w+)/$req->{sessionInfo}->{$1}/ge;
|
||||
|
||||
# Send mail
|
||||
unless (
|
||||
|
@ -438,7 +438,7 @@ sub changePwd {
|
|||
# Replace variables in body
|
||||
my $password = $req->datas->{newpassword};
|
||||
$body =~ s/\$password/$password/g;
|
||||
$body =~ s/\$(\w+)/decode("utf8",$req->{sessionInfo}->{$1})/ge;
|
||||
$body =~ s/\$(\w+)/$req->{sessionInfo}->{$1}/ge;
|
||||
|
||||
# Send mail
|
||||
return PE_MAILERROR
|
||||
|
|
Loading…
Reference in New Issue
Block a user