[wp-trac] [WordPress Trac] #10095: get_home_path() confused if "WordPress address" and "Blog address" slightly different.

WordPress Trac wp-trac at lists.automattic.com
Thu Jun 11 05:44:13 GMT 2009


#10095: get_home_path() confused if "WordPress address" and "Blog address" slightly
different.
-----------------------------+----------------------------------------------
 Reporter:  csixty4          |       Owner:            
     Type:  feature request  |      Status:  new       
 Priority:  normal           |   Milestone:  Unassigned
Component:  Administration   |     Version:  2.8       
 Severity:  normal           |    Keywords:            
-----------------------------+----------------------------------------------
 User has "WordPress address" (siteurl) set to http://www.tuxotaku.com and
 "Blog address" (home) set to http://tuxotaku.com. Both are valid URLs.

 get_home_path() in wp-admin/includes/file.php is trying to take the "home"
 address off the front of "siteurl" to get the path to .haccess. The "www."
 messes up the str_replace() call, and get_home_path() just returns "/"
 instead of the path to the WordPress files.

 Additionally, user's server has open_basedir configured and gives error
 that "File(/) is not within the allowed path(s):" when
 is_writable($home_path) called in save_mod_rewrite_rules() (misc.php).

 Told user to set both URLs to http://www.tuxotaku.com and it cleared up
 the problem.

 Maybe add a warning message to the General admin screen if "siteurl"
 doesn't start with the URL from "home"?

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/10095>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list