You've already forked postfixadmin
mirror of
https://github.com/postfixadmin/postfixadmin.git
synced 2025-11-29 11:03:07 +03:00
sendmail.php:
- do not escape_string() the mailbody - having \n in mails instead of real newlines is not nice. This fixes https://sourceforge.net/tracker/?func=detail&atid=937964&aid=2005839&group_id=191583 Thanks to Tabmow for the report! - added missing newline between headers and message body git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@396 a1433add-5e2c-0410-b055-b7f2511e0802
This commit is contained in:
@@ -49,15 +49,20 @@ if ($_SERVER['REQUEST_METHOD'] == "POST")
|
||||
$fHeaders .= "MIME-Version: 1.0\n";
|
||||
$fHeaders .= "Content-Type: text/plain; charset=utf-8\n";
|
||||
$fHeaders .= "Content-Transfer-Encoding: 8bit\n";
|
||||
$fHeaders .= "\n";
|
||||
|
||||
$fHeaders .= escape_string ($_POST['fBody']);
|
||||
$tBody = $_POST['fBody'];
|
||||
if (get_magic_quotes_gpc ())
|
||||
{
|
||||
$tBody = stripslashes($tBody);
|
||||
}
|
||||
$fHeaders .= $tBody;
|
||||
|
||||
if (empty ($fTo) or !check_email ($fTo))
|
||||
{
|
||||
$error = 1;
|
||||
$tTo = escape_string ($_POST['fTo']);
|
||||
$tSubject = escape_string ($_POST['fSubject']);
|
||||
$tBody = escape_string ($_POST['fBody']);
|
||||
$tMessage = $PALANG['pSendmail_to_text_error'];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user