diff options
author | Wesley Shields <wxs@FreeBSD.org> | 2008-07-14 01:42:32 +0000 |
---|---|---|
committer | Wesley Shields <wxs@FreeBSD.org> | 2008-07-14 01:42:32 +0000 |
commit | 36e7f12030b7d6b27d86000c4032fc7070c2edd0 (patch) | |
tree | b94fb71afe6a0809eb2835d49c14755d485e3640 /mail/postfixadmin/files/patch-sendmail.php | |
parent | - Fix typo in latest link (diff) |
Update to 2.2.0
Remove old patches, add new patch.
Update instructions in pkg-message.
PR: ports/125083
Submitted by: terry@sucked-in.com
Approved by: maintainer timeout
Notes
Notes:
svn path=/head/; revision=216807
Diffstat (limited to '')
-rw-r--r-- | mail/postfixadmin/files/patch-sendmail.php | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/mail/postfixadmin/files/patch-sendmail.php b/mail/postfixadmin/files/patch-sendmail.php new file mode 100644 index 000000000000..7e4790d4898f --- /dev/null +++ b/mail/postfixadmin/files/patch-sendmail.php @@ -0,0 +1,24 @@ +--- sendmail.php 2007/12/02 13:59:33 250 ++++ sendmail.php 2008/06/29 16:11:37 396 +@@ -49,15 +49,20 @@ + $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']; + } |