projects
/
civicrm-core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8ee1e28
)
CRM_Mailing_Form_Test - Email formatting
author
Tim Otten
<totten@civicrm.org>
Mon, 2 Mar 2015 01:18:05 +0000
(17:18 -0800)
committer
Tim Otten
<totten@civicrm.org>
Mon, 2 Mar 2015 01:18:05 +0000
(17:18 -0800)
CRM/Mailing/Form/Test.php
patch
|
blob
|
blame
|
history
diff --git
a/CRM/Mailing/Form/Test.php
b/CRM/Mailing/Form/Test.php
index 677de42610d56d973b4a24275294c9c07007b274..0f953363e85e6281a468a5bc9d03851df6a80c3b 100644
(file)
--- a/
CRM/Mailing/Form/Test.php
+++ b/
CRM/Mailing/Form/Test.php
@@
-214,7
+214,7
@@
class CRM_Mailing_Form_Test extends CRM_Core_Form {
foreach ($emailAdd as $key => $value) {
$email = trim($value);
$testParams['emails'][] = $email;
- $emails .=
$emails ? ",'$email'" : "'$email
'";
+ $emails .=
($emails ? ',' : '') . "'" . CRM_Core_DAO::escapeString($email) . "
'";
if (!CRM_Utils_Rule::email($email)) {
CRM_Core_Session::setStatus(ts('Please enter a valid email addresses.'), ts('Test not sent.'), 'error');
$error = TRUE;