[wp-trac] [WordPress Trac] #63316: [E_WARNING] Undefined array key "host" in wp-includes/canonical.php on line 717

WordPress Trac noreply at wordpress.org
Tue Apr 22 15:51:31 UTC 2025


#63316: [E_WARNING] Undefined array key "host" in wp-includes/canonical.php on line
717
--------------------------------+------------------------------
 Reporter:  ArtZ91              |       Owner:  (none)
     Type:  defect (bug)        |      Status:  new
 Priority:  normal              |   Milestone:  Awaiting Review
Component:  Canonical           |     Version:  6.8
 Severity:  normal              |  Resolution:
 Keywords:  needs-testing-info  |     Focuses:
--------------------------------+------------------------------
Changes (by SirLouen):

 * keywords:  needs-testing-info reporter-feedback => needs-testing-info


Comment:

 @ArtZ91 I need to check, but judging from your environment, my intuition
 says that the problem is with Apache2, it’s not sanitizing the Host
 header.

 I'm going to see if I can setup an Apache host a try again (wordpress-
 develop env by default uses nginx reverse proxy with FPM-PHP hosts for
 WP). Still if this is the problem, host existance should be checked before
 using it in the informed variable, hence, there is a potential issue to be
 sorted, just we need some reproduction steps to consistently reproduce
 this issue until it gets sorted.

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


More information about the wp-trac mailing list