svn: /phpdoc/en/trunk/reference/mail/functions/ mail.xml
| From: | Yasuo Ohgaki | Date: | Wed, 24 Jun 2015 01:07:14 +0000 |
| Subject: | svn: /phpdoc/en/trunk/reference/mail/functions/ mail.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-13426@lists.php.net to get a copy of this message | ||
yohgaki Wed, 24 Jun 2015 01:07:14 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=337039
Log:
Add security note for addtional_headers parameter.
Changed paths:
U phpdoc/en/trunk/reference/mail/functions/mail.xml
Modified: phpdoc/en/trunk/reference/mail/functions/mail.xml
===================================================================
--- phpdoc/en/trunk/reference/mail/functions/mail.xml 2015-06-23 20:50:22 UTC (rev 337038)
+++ phpdoc/en/trunk/reference/mail/functions/mail.xml 2015-06-24 01:07:14 UTC (rev 337039)
@@ -96,6 +96,14 @@
</para>
<note>
<para>
+ <parameter>additional_headers</parameter> does not have mail header
+ injection protection. Therefore, users must make sure specified headers
+ are safe and contains headers only. i.e. Never start mail body by putting
+ multiple newlines.
+ </para>
+ </note>
+ <note>
+ <para>
When sending mail, the mail <emphasis>must</emphasis> contain
a <literal>From</literal> header. This can be set with the
<parameter>additional_headers</parameter> parameter, or a default