]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Fix ticket #2392: sending invitation email fails when site name contains double quotes
authorBrion Vibber <brion@pobox.com>
Fri, 7 Jan 2011 01:43:00 +0000 (17:43 -0800)
committerBrion Vibber <brion@pobox.com>
Fri, 7 Jan 2011 01:43:00 +0000 (17:43 -0800)
Gotta escape quotes!

lib/mail.php

index dd6a1a366e80ac75126a2040aa20774219151b54..9b6b7d698872065914fc468dab5d4d3c6a0b95bb 100644 (file)
@@ -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;