mirror of
https://bitbucket.org/jsuto/piler.git
synced 2025-02-04 23:48:36 +01:00
Merged in mivolz/piler/smtp-fix (pull request #11)
escape lines starting with dot in smtp client session
This commit is contained in:
commit
cb5a7e3d84
@ -12,6 +12,8 @@ class ModelMailMail extends Model {
|
||||
$msg = preg_replace("/Message-ID:([^\n]+)\n/i", "Message-ID: <" . generate_random_string(25) . '@' . SITE_NAME . ">\n", $msg);
|
||||
}
|
||||
|
||||
$msg = preg_replace("/^\..*$/m", ".$0", $msg);
|
||||
|
||||
$r = fsockopen($smtphost, $smtpport);
|
||||
if(!$r){ return -1; }
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user