This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
symfony/src/Symfony/Component/Mime
Fabien Potencier a3aaaa16e9 bug #32986 [Mime] fixed wrong mimetype (rjwebdev)
This PR was squashed before being merged into the 4.3 branch (closes #32986).

Discussion
----------

[Mime] fixed wrong mimetype

| Q             | A
| ------------- | ---
| Branch?       | 4.3
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #32816
| License       | MIT

When creating a datapart from an odt file (and some other extensions), the explode function for the picked mimetype gives a wrong result since there's no `application/` prefix for the first mimetype of this extension.

In this PR, all mimetypes without a prefix are removed.

Commits
-------

e1722c529a [Mime] fixed wrong mimetype
2019-08-07 12:03:35 +02:00
..
DependencyInjection [Mime] added classes for generating MIME messages 2019-03-02 15:10:47 +01:00
Encoder [Mime] fixed wrong logic 2019-03-09 17:40:15 +01:00
Exception [Mime] added classes for generating MIME messages 2019-03-02 15:10:47 +01:00
Header [Mime] rename Headers::getAll() to all() 2019-07-18 20:01:20 +02:00
Part fixed logic 2019-03-08 00:10:16 +01:00
Resources/bin [Mime] fixed wrong mimetype 2019-08-07 12:03:27 +02:00
Tests Remove deprecated assertContains 2019-08-07 10:22:11 +02:00
.gitignore [Mime] added the component 2019-01-16 23:56:01 +01:00
Address.php fixed encoder in Mime 2019-03-20 21:49:31 +01:00
BodyRendererInterface.php [Mime] added BodyRendererInterface 2019-03-27 08:07:59 +01:00
CHANGELOG.md [Mime] Add missing changelog entry for BC-break 2019-07-19 19:21:19 +03:00
CharacterStream.php [Mime] added classes for generating MIME messages 2019-03-02 15:10:47 +01:00
composer.json [Mime] added classes for generating MIME messages 2019-03-02 15:10:47 +01:00
Email.php Create mailBody with only attachments part present 2019-08-04 14:19:23 +02:00
FileBinaryMimeTypeGuesser.php [Mime] added classes for generating MIME messages 2019-03-02 15:10:47 +01:00
FileinfoMimeTypeGuesser.php [Mime] added classes for generating MIME messages 2019-03-02 15:10:47 +01:00
LICENSE [Mime] added the component 2019-01-16 23:56:01 +01:00
Message.php Remove @internal annotations for the serilize methods 2019-07-01 10:51:14 +02:00
MessageConverter.php changed type hints 2019-06-04 11:22:54 +02:00
MimeTypeGuesserInterface.php [Mime] added classes for generating MIME messages 2019-03-02 15:10:47 +01:00
MimeTypes.php [Mime] fixed wrong mimetype 2019-08-07 12:03:27 +02:00
MimeTypesInterface.php [Mime] added classes for generating MIME messages 2019-03-02 15:10:47 +01:00
NamedAddress.php [Mime] added classes for generating MIME messages 2019-03-02 15:10:47 +01:00
phpunit.xml.dist [Mime] added the component 2019-01-16 23:56:01 +01:00
RawMessage.php Remove @internal annotations for the serilize methods 2019-07-01 10:51:14 +02:00
README.md Merge branch '4.2' 2019-03-12 19:57:21 +01:00

MIME Component

The MIME component allows manipulating MIME messages.

This Component is experimental. Experimental features are not covered by Symfony's Backward Compatibility Promise.

Resources