From: Brion Vibber Date: Fri, 7 Jan 2011 01:43:00 +0000 (-0800) Subject: Fix ticket #2392: sending invitation email fails when site name contains double quotes X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=35507cd0394fd058d69e65e7d18fcf880588bf2b;p=quix0rs-gnu-social.git Fix ticket #2392: sending invitation email fails when site name contains double quotes Gotta escape quotes! --- diff --git a/lib/mail.php b/lib/mail.php index dd6a1a366e..9b6b7d6988 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 = '"'. str_replace('"', '\\"', common_config('site', 'name')) .'" '; } return $notifyfrom;