-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Fix not allowed encoding of content-transfer-encoding and content-type headers in single part encoded mails #5140
Conversation
for single-part mime mails.
* | ||
* @param string $transferEncoding | ||
* @throws Exception\InvalidArgumentException | ||
* @return ContentTransferEncoding |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@return self
* @link http://github.com/zendframework/zf2 for the canonical source repository | ||
* @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com) | ||
* @license http://framework.zend.com/license/new-bsd New BSD License | ||
* @package Zend_Mail |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@samsonasik You are missing capabalities :) Where are you comment about @package
...
@2DivisionsByZero Please remove package, subpackage and category
as requested by @samsonasik
@Maks3w @samsonasik Is the request OK now? |
👍 |
|
||
public function setEncoding($encoding) | ||
{ | ||
// This header must be always in US-ASCII |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd rather throw an exception here, instead of silently ignoring the setting (if possible).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not changed because it should not be changed regardless what encoding the rest of the message is changed to.
Similar to ContentType.
- do simple in_array comparison for transfer encoding - remove to many spaces befor equal sign - use camelCase var names
|
||
namespace Zend\Mail\Header; | ||
|
||
use Zend\Mail\Headers; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
unused
Finally header classes needs to be adapted for the future #5291 since introduce the same bug about headerline split |
…nges. Adapt code to design changes added by zendframework/zendframework#5291 and zendframework/zendframework#5303
for single-part mime mails.
See #5128
Requires #5303
Needs to be adapted if #5291 is merged.