Skip to content

Properly encode content-disposition header#31

Merged
weierophinney merged 3 commits into
laminas:masterfrom
fredden:content-disposition
Jun 30, 2020
Merged

Properly encode content-disposition header#31
weierophinney merged 3 commits into
laminas:masterfrom
fredden:content-disposition

Conversation

@fredden

@fredden fredden commented Jan 10, 2020

Copy link
Copy Markdown
Contributor
Q A
Documentation no
Bugfix yes
BC Break no
New Feature yes
RFC no
QA no

Description

Fixes: #2

This is a port of zendframework/zend-mail#251 to this repository per zendframework/zend-mail#251 (comment).

When using UTF-8 encoding, this codebase was producing a header being of Content-Disposition: =?utf-8?Q?inline?= which is not interpreted properly by Thunderbird nor Microsoft Outlook. This pull request introduces specific handling of this header, so that inline will never be encoded as UTF-8 and therefore cannot be misinterpreted by some user agents.

This is a proper fix for magento/magento2#25076. The work-around applied there was to no longer set a content-disposition header.

fredden added 3 commits April 1, 2020 17:17
Signed-off-by: Dan Wallis <mrdanwallis@gmail.com>
Signed-off-by: Dan Wallis <mrdanwallis@gmail.com>
weierophinney added a commit that referenced this pull request Jun 30, 2020
Signed-off-by: Matthew Weier O'Phinney <matthew@weierophinney.net>
@weierophinney

Copy link
Copy Markdown
Member

Thanks, @fredden! Merged to develop for release with 2.11.0.

@weierophinney weierophinney merged commit bdab8ce into laminas:master Jun 30, 2020
@glensc

glensc commented Jun 30, 2020

Copy link
Copy Markdown
Contributor

This looks like huge copy-paste from some other class... 🤔

@fredden fredden deleted the content-disposition branch April 12, 2021 18:12
artemii-karkusha pushed a commit to artemii-karkusha/laminas-mail that referenced this pull request May 24, 2023
Properly encode content-disposition header
artemii-karkusha pushed a commit to artemii-karkusha/laminas-mail that referenced this pull request May 24, 2023
Signed-off-by: Matthew Weier O'Phinney <matthew@weierophinney.net>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Properly encode content-disposition header

4 participants