X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;ds=sidebyside;f=functions%2Fsmtp.php;h=b0b922f2f15327deb357de525d9665ee4e38121e;hb=063a10aabe8f7d0adf99d4bda61c4bec6dc84bff;hp=cae5cbc02caddf0570ef6b6512a3f881b15155c6;hpb=35d520d38d305bfbd1252a01d20020c893efacd2;p=squirrelmail.git diff --git a/functions/smtp.php b/functions/smtp.php index cae5cbc0..b0b922f2 100644 --- a/functions/smtp.php +++ b/functions/smtp.php @@ -488,6 +488,15 @@ global $data_dir, $username, $domain, $key, $version, $sent_folder, $imapServerAddress, $imapPort; $more_headers = Array(); + // added as just a precaution (Luke: 1.0.1) + $t = trim($t); + $c = trim($c); + $b = trim($b); + $subject = trim($subject); + $body = trim($body); + $mailbox = trim($mailbox); + $sent_folder = trim($sent_folder); + $imap_stream = sqimap_login($username, $key, $imapServerAddress, $imapPort, 1); if ($reply_id) {