From: Craig Andrews Date: Tue, 21 Jul 2009 18:03:08 +0000 (-0400) Subject: Fixed: If the site name contains "." or "@" (and perhaps others), then notification... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=10a6751ddb22ba960f8313acac130c5c63b30086;p=quix0rs-gnu-social.git Fixed: If the site name contains "." or "@" (and perhaps others), then notification emails (such as the email confirmation email) fail with the error "LOG_ERR: PEAR error: Validation failed for: SITE_NAME :" Thanks jk3us http://laconi.ca/trac/ticket/1356 --- diff --git a/lib/mail.php b/lib/mail.php index 90ee3c9928..262f788ee5 100644 --- a/lib/mail.php +++ b/lib/mail.php @@ -121,7 +121,7 @@ function mail_notify_from() $domain = mail_domain(); - $notifyfrom = common_config('site', 'name') .' '; + $notifyfrom = '"'.common_config('site', 'name') .'" '; } return $notifyfrom;