Skip to content

Update ContentType.php#264

Open
tomolimo wants to merge 2 commits into
laminas:2.26.xfrom
tomolimo:tomolimo-patch-image
Open

Update ContentType.php#264
tomolimo wants to merge 2 commits into
laminas:2.26.xfrom
tomolimo:tomolimo-patch-image

Conversation

@tomolimo
Copy link
Copy Markdown

To be able to cope with mimetype like type/*

Q A
Documentation no
Bugfix yes
BC Break no
New Feature no
RFC no
QA no

Description

fixes #119

eml file to test this bug is here: https://gist.github.com/rikvdh/489e13b22f9012db2dcd9f5046b53e43

To be able to cope with mimetype like type/*

Signed-off-by: tomolimo <olivier.moron@araymond.com>
Comment thread src/Header/ContentType.php Outdated
Delete the escape char that is not needed in front of * in []

Signed-off-by: tomolimo <olivier.moron@araymond.com>
@Xerkus
Copy link
Copy Markdown
Member

Xerkus commented May 31, 2024

This change will need an accompanying unit test. Both in reading content type from string and returning expected string representation with *

@tomolimo
Copy link
Copy Markdown
Author

Unfortunately, I'will not have time to do it...
Sorry for that

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Laminas mail expects a value in the format "type/subtype"; received "image/*"

2 participants