[wp-trac] [WordPress Trac] #39586: Handle absolute request URI-s

WordPress Trac noreply at wordpress.org
Mon Jan 16 03:33:48 UTC 2017


#39586: Handle absolute request URI-s
---------------------------+------------------------------
 Reporter:  szepe.viktor   |       Owner:
     Type:  defect (bug)   |      Status:  new
 Priority:  normal         |   Milestone:  Awaiting Review
Component:  Rewrite Rules  |     Version:  trunk
 Severity:  normal         |  Resolution:
 Keywords:  close          |     Focuses:
---------------------------+------------------------------

Comment (by dd32):

 IMHO this would be a candidate for
 [https://developer.wordpress.org/reference/functions/wp_fix_server_vars/
 wp_fix_server_vars()] if a webserver configuration is incorrectly passing
 the full URI in what we expect to only contain a path.

 We'd need to document (on this ticket) the server circumstances under
 which the scenario is possible, and also the contents of the _unaltered_
 `$_SERVER` variables, and what we mangle them to.

 There have been cases in the past where we'd mangle an otherwise good
 `$_SERVER` variable to something incorrect because of something odd the
 server was passing in a variable though.

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


More information about the wp-trac mailing list