[wp-trac] [WordPress Trac] #10447: get_home_path() fails when home url and site url differ in case

WordPress Trac wp-trac at lists.automattic.com
Fri Jul 6 13:54:18 UTC 2012


#10447: get_home_path() fails when home url and site url differ in case
-------------------------------+---------------------
 Reporter:  Denis-de-Bernardy  |       Owner:  dd32
     Type:  defect (bug)       |      Status:  closed
 Priority:  normal             |   Milestone:  3.5
Component:  Filesystem         |     Version:  2.9
 Severity:  normal             |  Resolution:  fixed
 Keywords:  needs-patch        |
-------------------------------+---------------------
Changes (by dd32):

 * owner:   => dd32
 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [21224]:
 {{{
 #!CommitTicketReference repository="" revision="21224"
 Make get_home_path() work in more cases by being case insensitive and
 sanitzing Windows paths. In some cases (such as differing case of
 hostnames or paths in the site/home options, or when SCRIPT_FILENAME
 contains forward slashes) the function was failing to return the correct
 path, and would instead return /. Props to SergeyBiryukov for the initial
 patch. Fixes #20449 Fixes #10447
 }}}

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/10447#comment:14>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list