Fix ticket #2392: sending invitation email fails when site name contains double quotes
Gotta escape quotes!
This commit is contained in:
parent
36711f305a
commit
35507cd039
|
@ -121,7 +121,7 @@ function mail_notify_from()
|
|||
|
||||
$domain = mail_domain();
|
||||
|
||||
$notifyfrom = '"'.common_config('site', 'name') .'" <noreply@'.$domain.'>';
|
||||
$notifyfrom = '"'. str_replace('"', '\\"', common_config('site', 'name')) .'" <noreply@'.$domain.'>';
|
||||
}
|
||||
|
||||
return $notifyfrom;
|
||||
|
|
Loading…
Reference in New Issue
Block a user