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

Issue #2728 - Bad Regex for Content Type header #2737

Closed
wants to merge 2 commits into from

Conversation

robertmarsal
Copy link
Contributor

Modified regexp that checks for valid content to accept excel content type

Issue #2728

@ClemensSahs
Copy link
Contributor

please add the support for the following types, too.

video/mp4
model/x3d+binary
message/rfc822
audio/L24

see: http://en.wikipedia.org/wiki/Internet_media_type
see: http://www.iana.org/assignments/media-types/index.html

@ClemensSahs
Copy link
Contributor

I change the regexp and check it with all MIME-Types who are registered in the IANA MIME-DB

regexp: "/^[a-z_-]+/[a-z0-9.+_-]+$/i"

the script for checking the DB and create a full MIME-List you can find here.
https://gist.github.com/3878720

@robertmarsal
Copy link
Contributor Author

@ClemensSahs thanks for this! I updated the regexp and modified the tests to include more MIME types

weierophinney added a commit that referenced this pull request Oct 16, 2012
@ghost ghost assigned weierophinney Oct 16, 2012
weierophinney added a commit to zendframework/zend-mail that referenced this pull request May 14, 2015
weierophinney added a commit to zendframework/zend-mail that referenced this pull request May 14, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants