[wp-trac] [WordPress Trac] #47733: Undefined index HTTP_HOST in wp-includes/ms-settings.php on line 57

WordPress Trac noreply at wordpress.org
Tue Jul 23 16:04:18 UTC 2019


#47733: Undefined index HTTP_HOST in wp-includes/ms-settings.php on line 57
----------------------------+------------------------------
 Reporter:  JochenT         |       Owner:  (none)
     Type:  defect (bug)    |      Status:  new
 Priority:  normal          |   Milestone:  Awaiting Review
Component:  Bootstrap/Load  |     Version:  5.2.2
 Severity:  minor           |  Resolution:
 Keywords:  needs-patch     |     Focuses:  multisite
----------------------------+------------------------------

Comment (by JochenT):

 Further info:
 Apache sets HTTP_HOST to the correspondending value in the
 [https://httpd.apache.org/docs/2.4/expr.html#vars header of a HTTP
 request]. As mentioned in the doc for the
 [https://httpd.apache.org/docs/2.4/en/mod/core.html#usecanonicalname
 UseCanonicalName Directive] ancient clients may do not provide a
 'Host:...' header.

 In such cases SERVER_NAME may be used to construct self-referential URLs.
 The question is if it still makes sense to support these ancient clients.

 Nevertheless, in case HTTP_HOST is missing a convenient error handling
 should be added.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/47733#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list