Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #39586, comment 4


Ignore:
Timestamp:
01/16/2017 03:34:01 AM (8 years ago)
Author:
dd32
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #39586, comment 4

    initial v1  
    11IMHO 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.
    22
    3 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.
     3We'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.
    44
    55There 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.