You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This PR was submitted for the 6.1 branch but it was squashed and merged into the 4.4 branch instead.
Discussion
----------
[Mime] Relaxing in-reply-to header validation
| Q | A
| ------------- | ---
| Branch? | 6.1
| Bug fix? | no
| New feature? | ?
| Deprecations? | no
| Tickets | Fix#37361
| License | MIT
| Doc PR | not necessary
@nicolas-grekas
1. Is it OK to just use `UnstructuredHeader`?
2. Some tests at `IdentificationHeaderTest` are irrelevant now (but still pass) - should I remove them? And create some new test cases in `UnstructuredHeaderTest`? Or rely on every aspect being tested with other headers there, and don't add anything?
Commits
-------
04ddc12 [Mime] Relaxing in-reply-to header validation
Copy file name to clipboardExpand all lines: src/Symfony/Component/Mime/Header/Headers.php
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -141,8 +141,8 @@ public function add(HeaderInterface $header): self
141
141
'cc' => MailboxListHeader::class,
142
142
'bcc' => MailboxListHeader::class,
143
143
'message-id' => IdentificationHeader::class,
144
-
'in-reply-to' => IdentificationHeader::class,
145
-
'references' => IdentificationHeader::class,
144
+
'in-reply-to' => UnstructuredHeader::class,// `In-Reply-To` and `References` are less strict than RFC 2822 (3.6.4) to allow users entering the original email's ...
145
+
'references' => UnstructuredHeader::class,// ... `Message-ID`, even if that is no valid `msg-id`
0 commit comments