Fix ticket #2392: sending invitation email fails when site name contains double quotes

Gotta escape quotes!
This commit is contained in:
Brion Vibber 2011-01-06 17:43:00 -08:00
parent 36711f305a
commit 35507cd039

View File

@ -121,7 +121,7 @@ function mail_notify_from()
$domain = mail_domain(); $domain = mail_domain();
$notifyfrom = '"'.common_config('site', 'name') .'" <noreply@'.$domain.'>'; $notifyfrom = '"'. str_replace('"', '\\"', common_config('site', 'name')) .'" <noreply@'.$domain.'>';
} }
return $notifyfrom; return $notifyfrom;