Convert special characters to HTML entities when displaying email

addresses
This commit is contained in:
Vlad
2017-02-20 13:03:08 -05:00
parent bdcfd77d42
commit bc40bbb44b
5 changed files with 5 additions and 5 deletions

View File

@ -30,7 +30,7 @@ class SendGrid {
$response = (!empty($response['errors'][0])) ?
$response['errors'][0] :
sprintf(__('%s has returned an unknown error.', 'mailpoet'), Mailer::METHOD_SENDGRID);
$response .= sprintf(' %s: %s', __('Unprocessed subscriber', 'mailpoet'), $subscriber);
$response .= sprintf(' %s: %s', __('Unprocessed subscriber', 'mailpoet'), htmlspecialchars($subscriber));
return Mailer::formatMailerSendErrorResult($response);
}
return Mailer::formatMailerSendSuccessResult();