Please sign in to comment.
feature #30482 [Mime] Fix support for date form parts (fabpot)
This PR was squashed before being merged into the 4.3-dev branch (closes #30482). Discussion ---------- [Mime] Fix support for date form parts | Q | A | ------------- | --- | Branch? | master | Bug fix? | yes | New feature? | yes <!-- don't forget to update src/**/CHANGELOG.md files --> | BC breaks? | no <!-- see https://symfony.com/bc --> | Deprecations? | no <!-- don't forget to update UPGRADE-*.md and src/**/CHANGELOG.md files --> | Tests pass? | yes <!-- please add some, will be required by reviewers --> | Fixed tickets | n/a | License | MIT | Doc PR | n/a <!-- Write a short README entry for your feature/bugfix here (replace this comment block.) This will help people understand your PR and can be used as a start of the Doc PR. Additionally: - Bug fixes must be submitted against the lowest branch where they apply (lowest branches are regularly merged to upper ones so they get the fixes too). - Features and deprecations must be submitted against the master branch. --> Commits ------- 5c8a4e3 [Mime] removed the 2 parts constraints on Multipart (not true for DataFormPart for instance) 0450c4f [Mime] fixed support for date form parts
- Loading branch information...
Showing with 85 additions and 32 deletions.
- +35 −0 src/Symfony/Component/Mime/Encoder/EightBitContentEncoder.php
- +0 −11 src/Symfony/Component/Mime/Part/AbstractMultipartPart.php
- +15 −11 src/Symfony/Component/Mime/Part/Multipart/FormDataPart.php
- +9 −6 src/Symfony/Component/Mime/Part/TextPart.php
- +26 −4 src/Symfony/Component/Mime/Tests/Part/Multipart/FormDataPartTest.php
|@@ -0,0 +1,35 @@|
|* This file is part of the Symfony package.|
|* (c) Fabien Potencier <email@example.com>|
|* For the full copyright and license information, please view the LICENSE|
|* file that was distributed with this source code.|
|* @author Fabien Potencier <firstname.lastname@example.org>|
|* @experimental in 4.3|
|final class EightBitContentEncoder implements ContentEncoderInterface|
|public function encodeByteStream($stream, int $maxLineLength = 0): iterable|
|yield from $stream;|
|public function getName(): string|
|public function encodeString(string $string, ?string $charset = 'utf-8', int $firstLineOffset = 0, int $maxLineLength = 0): string|