Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update ContentType.php #264

Open
wants to merge 2 commits into
base: 2.26.x
Choose a base branch
from

Conversation

tomolimo
Copy link

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>
src/Header/ContentType.php Outdated Show resolved Hide resolved
Delete the escape char that is not needed in front of * in []

Signed-off-by: tomolimo <olivier.moron@araymond.com>
@Xerkus
Copy link
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
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