Skip to content
This repository has been archived by the owner on Jan 30, 2020. It is now read-only.

[ContentType] Fix parameters with encoded values #26

Closed
wants to merge 4 commits into from
Closed

[ContentType] Fix parameters with encoded values #26

wants to merge 4 commits into from

Conversation

Maks3w
Copy link
Member

@Maks3w Maks3w commented Sep 8, 2015

No description provided.

@Maks3w Maks3w changed the title ContentType test refactor as data providers [ContentType] Fix parameters with encoded values Sep 8, 2015
@Maks3w Maks3w added the bug label Sep 8, 2015
@Maks3w Maks3w added this to the 2.5.2 milestone Sep 8, 2015
@@ -66,6 +74,13 @@ public function getFieldValue($format = HeaderInterface::FORMAT_RAW)

$values = [$prepared];
foreach ($this->parameters as $attribute => $value) {
if (HeaderInterface::FORMAT_ENCODED === $format &&
!Mime::isPrintable($value)) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Push the && to the second line, and the closing ) and opening { onto a line by themselves.

@weierophinney weierophinney modified the milestones: 2.6.0, 2.5.2 Sep 9, 2015
@Maks3w
Copy link
Member Author

Maks3w commented Sep 9, 2015

CS fixed

@Maks3w
Copy link
Member Author

Maks3w commented Sep 9, 2015

I can ammend if you want

weierophinney added a commit that referenced this pull request Sep 9, 2015
[ContentType] Fix parameters with encoded values
weierophinney added a commit that referenced this pull request Sep 9, 2015
weierophinney added a commit that referenced this pull request Sep 9, 2015
@weierophinney
Copy link
Member

Accidentally merged only to develop, so cherry-picked the commits into master as 5ec3b92 a3bfd16 28e1399 and fb25989

@weierophinney weierophinney self-assigned this Sep 9, 2015
glensc pushed a commit to eventum/zend-mail that referenced this pull request Feb 15, 2016
This commit backports changes from the 2.5 series for the 2.4.8 LTS release.
These include the following:

- [zendframework#11](zendframework#11) ensures that the
  sender can be a mailbox name, or an email specifying a host that omits the
  TLD.
- [zendframework#21](zendframework#21) provides a patch to
  allow addresses in the form `Name address@domain.tld` (without angle brackets
  surrounding the actual email addres).
- [zendframework#24](zendframework#24) fixes parsing of
  mail messagse that contain an initial blank line (prior to any headers), a
  situation observed in particular with GMail.
- [zendframework#26](zendframework#26) fixes the
  `ContentType` header to properly handle parameters with encoded values.
weierophinney added a commit to zendframework/zendframework that referenced this pull request Dec 20, 2016
This commit backports changes from the 2.5 series for the 2.4.8 LTS release.
These include the following:

- [#11](zendframework/zend-mail#11) ensures that the
  sender can be a mailbox name, or an email specifying a host that omits the
  TLD.
- [#21](zendframework/zend-mail#21) provides a patch to
  allow addresses in the form `Name address@domain.tld` (without angle brackets
  surrounding the actual email addres).
- [#24](zendframework/zend-mail#24) fixes parsing of
  mail messagse that contain an initial blank line (prior to any headers), a
  situation observed in particular with GMail.
- [#26](zendframework/zend-mail#26) fixes the
  `ContentType` header to properly handle parameters with encoded values.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants