mirror of
https://github.com/vrana/adminer.git
synced 2025-08-17 12:00:41 +02:00
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:
@@ -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) {
|
||||||
|
Reference in New Issue
Block a user