Add X-Mailer header
git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@1140 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
parent
3bbf9a863e
commit
58b6221f5b
|
@ -321,7 +321,7 @@ ORDER BY ORDINAL_POSITION"); //! requires MySQL 5
|
||||||
$beginning = "--$boundary$eol$headers$eol$eol";
|
$beginning = "--$boundary$eol$headers$eol$eol";
|
||||||
$headers = "Content-Type: multipart/mixed; boundary=\"$boundary\"";
|
$headers = "Content-Type: multipart/mixed; boundary=\"$boundary\"";
|
||||||
}
|
}
|
||||||
$headers .= $eol . "MIME-Version: 1.0"
|
$headers .= $eol . "MIME-Version: 1.0$eol" . "X-Mailer: Adminer Editor"
|
||||||
. ($_POST["email_from"] ? $eol . "From: " . str_replace("\n", "", $_POST["email_from"]) : "") //! should escape display name
|
. ($_POST["email_from"] ? $eol . "From: " . str_replace("\n", "", $_POST["email_from"]) : "") //! should escape display name
|
||||||
;
|
;
|
||||||
foreach ($this->rowDescriptions($rows, $foreignKeys) as $row) {
|
foreach ($this->rowDescriptions($rows, $foreignKeys) as $row) {
|
||||||
|
|
Loading…
Reference in a new issue