[wp-trac] [WordPress Trac] #25239: $_SERVER['SERVER_NAME'] not a reliable when generating email host names
WordPress Trac
noreply at wordpress.org
Sat Aug 31 02:32:31 UTC 2019
#25239: $_SERVER['SERVER_NAME'] not a reliable when generating email host names
-------------------------------------------------+-------------------------
Reporter: layotte | Owner:
| SergeyBiryukov
Type: defect (bug) | Status: reviewing
Priority: normal | Milestone: Future
| Release
Component: Mail | Version: 3.8
Severity: normal | Resolution:
Keywords: has-patch dev-feedback needs- | Focuses:
testing |
-------------------------------------------------+-------------------------
Comment (by Starbuck):
This is not only related to email. In comment:92 @kitchin noted that there
are 12 files referencing SERVER_NAME. One of the references is in v5.2.2
[https://core.trac.wordpress.org/browser/tags/5.2.2/src/wp-includes/rest-
api.php#L378 rest-api.php], which is throwing errors over nginx.
I'm not sure how I fell into that code segment yet. I'm not running SSL
yet on this new site. But in diagnosing the issue I found this ticket.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/25239#comment:104>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list