Skip to content

Commit

Permalink
Fixing header string quoting in data(). (Bug #17199)
Browse files Browse the repository at this point in the history
  • Loading branch information
jparise committed Mar 8, 2010
1 parent f6b29e3 commit b3d99c9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion SMTP.php
Expand Up @@ -952,7 +952,7 @@ function data($data, $headers = null)

/* If we have a separate headers string, send it first. */
if (!is_null($headers)) {
$this->quotedata($line);
$this->quotedata($headers);
if (PEAR::isError($result = $this->_send($headers . "\r\n\r\n"))) {
return $result;
}
Expand Down
10 changes: 4 additions & 6 deletions package.xml
Expand Up @@ -19,20 +19,18 @@
<email>chuck@horde.org</email>
<active>yes</active>
</lead>
<date>2010-01-24</date>
<time>13:47:00</time>
<date>2010-03-07</date>
<time>20:55:00</time>
<version>
<release>1.4.1</release>
<release>1.4.2</release>
<api>1.1.2</api>
</version>
<stability>
<release>stable</release>
<api>stable</api>
</stability>
<license uri="http://www.php.net/license/3_01.txt">PHP License</license>
<notes> The auth() method now includes an optional $tls parameter that determines whether or not TLS should be attempted (if supported by the PHP runtime and the remote SMTP server). This parameter defaults to true. (Bug #16349)

Header data can be specified separately from message body data by passing it as the optional second parameter to ``data()``. This is especially useful when an open file resource is being used to supply message data because it allows header fields (like *Subject:*) to be built dynamically at runtime. (Request #17012)
<notes>Fixing header string quoting in data(). (Bug #17199)
</notes>
<contents>
<dir baseinstalldir="Net" name="/">
Expand Down

0 comments on commit b3d99c9

Please sign in to comment.