[wp-trac] [WordPress Trac] #20449: get_home_path() error on windows with different home and site_url values

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


#20449: get_home_path() error on windows with different home and site_url values
--------------------------+---------------------
 Reporter:  iturgeon      |       Owner:  dd32
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:  3.5
Component:  Permalinks    |     Version:  3.3.1
 Severity:  normal        |  Resolution:  fixed
 Keywords:  has-patch     |
--------------------------+---------------------
Changes (by dd32):

 * owner:   => dd32
 * status:  new => 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/20449#comment:4>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list