From 35507cd0394fd058d69e65e7d18fcf880588bf2b Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Thu, 6 Jan 2011 17:43:00 -0800 Subject: [PATCH] Fix ticket #2392: sending invitation email fails when site name contains double quotes Gotta escape quotes! --- lib/mail.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.5