Closed (fixed)
Project:
Drupal core
Version:
7.x-dev
Component:
mail system
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
17 Mar 2023 at 10:37 UTC
Updated:
24 Nov 2023 at 11:59 UTC
Jump to comment: Most recent
Comments
Comment #2
chase. commentedComment #3
poker10 commentedThanks for reporting this. Adding some related issues.
Comment #4
poker10 commentedI think this fix looks good, thanks! The similar change is needed for D10 (see the parent issue), but there is a
Requestclass used and it returns a default value in case the specific$_SERVERkey is not defined. So a fix will be a bit different there.Comment #5
poker10 commentedAdding a tag for a final review.
Just a note, we should keep an eye on these two issues:
#2983438: Truncated MailFrom address - Incorrect Windows detection
#3328187: PHP Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in docroot/core/lib/Drupal/Core/Mail/Plugin/Mail/PhpMail.php on line 112
But I suppose that for D7 it would be better to fix this deprecation message as the patch proposes (we have already done it in #2356055: Notice in includes/mail.inc define) and then see, what to do with the check in overall in the separate existing issue referenced above.
The windows check is probably also related to this issue: #3319062: [D7] PhpMail : broken mail headers in PHP 8.0+ because of LF characters
Comment #7
mcdruid commentedThanks!