Converts special characters to HTML entities for all error messages

This commit is contained in:
Vlad
2017-02-21 09:55:18 -05:00
parent 97eb772ab8
commit 689c340081
6 changed files with 7 additions and 7 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'), htmlspecialchars($subscriber));
$response .= sprintf(' %s: %s', __('Unprocessed subscriber', 'mailpoet'), $subscriber);
return Mailer::formatMailerSendErrorResult($response);
}
return Mailer::formatMailerSendSuccessResult();