[wp-trac] [WordPress Trac] #25797: wp_guess_url() broken with symlinks involved

WordPress Trac noreply at wordpress.org
Fri Nov 1 10:28:41 UTC 2013


#25797: wp_guess_url() broken with symlinks involved
--------------------------+-----------------------------
 Reporter:  bootc         |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:  3.7.1
 Severity:  normal        |   Keywords:
--------------------------+-----------------------------
 I was notified by a client that WordPress 3.7.1 was failing to install on
 their server. Essentially, the Apache DocumentRoot pointed at a location
 redirected using a symlink, and parts of the path pointed to by the
 symlink make their way into the URL during installation. This did not
 occur with WordPress 3.6. I developed a test case to replicate the
 problem:

 1. I installed a fresh Debian VM with a LAMP stack to test with.
 2. `mkdir -p /srv/var/www`
 3. `rm -rf /var/www`
 4. `ln -s /srv/var/www /var/www`
 5. Extract WordPress 3.7.1 into `/srv/var/www`.
 6. View the installation in a web browser.
 7. The ''Create a Configuration File'' link points at `http://server/srv
 /wp-admin/setup-config.php` instead of `http://server/wp-admin/setup-
 config.php`. Note the addition of '''/srv''' into the URL.

 I'd say this was related to #25317, r25396, #24480, #16884, r25436.

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


More information about the wp-trac mailing list