[wp-trac] [WordPress Trac] #25239: $_SERVER['SERVER_NAME'] not a reliable when generating email host names
WordPress Trac
noreply at wordpress.org
Fri May 5 22:10:29 UTC 2017
#25239: $_SERVER['SERVER_NAME'] not a reliable when generating email host names
-------------------------------------------------+-------------------------
Reporter: layotte | Owner:
Type: defect (bug) | SergeyBiryukov
Priority: normal | Status: reviewing
Component: Mail | Milestone: Future
Severity: normal | Release
Keywords: has-patch dev-feedback needs- | Version: 3.8
testing | Resolution:
| Focuses:
-------------------------------------------------+-------------------------
Comment (by tsimmons):
Replying to [comment:61 kitchin]:
> @tsimmons, Have not reviewed all this bug, but looks like you would be
sending a lot of mail to `wordpress at co.uk`. Does WP use something like the
public suffix list? https://publicsuffix.org/
I don't think so, and probably really shouldn't. It really should just be
a configurable option (from address for admin messages) which the plugin
provides. Automatically deriving from user supplied input DIRECTLY is bad,
though, as the present code does.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/25239#comment:74>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list