Make WordPress Core

Opened 14 years ago

Closed 14 years ago

Last modified 14 years ago

#23104 closed defect (bug) (fixed)

symlinks in DOCUMENT_ROOT result in bad output for mutltisite htaccess generation

Reported by: wpewill Owned by: markjaquith
Priority: normal Milestone: 3.5.1
Component: Multisite Version: 3.5
Severity: normal Keywords: has-patch
Cc: Focuses:

Description

If there is a symlink somewhere in DOCUMENT_ROOT, it will differ from ABSPATH, causing the preg_replace prefix removal to fail, making the relative path calculation fail, resulting in a path from the filesystem root, except with the leading / missing

Attachments (1)

docroot-not-absolute.diff (849 bytes ) - added by wpewill 14 years ago.

Download all attachments as: .zip

Change History (7)

#1 @SergeyBiryukov
14 years ago

  • Component Network AdminMultisite

#3 @evansolomon
14 years ago

Looks reasonable to me.

#4 @markjaquith
14 years ago

  • Milestone Awaiting Review3.5.1

This is going into 3.5.1 along with #23073

#5 @markjaquith
14 years ago

  • Owner set to markjaquith
  • Resolutionfixed
  • Status newclosed

In 23295:

Resolve DOCUMENT_ROOT symlinks and standardize Windows slashing for various paths related to Multisite rewrite rule generation. props SergeyBiryukov, nacin, wpewill. fixes #23104 and #23073 for trunk

#6 @markjaquith
14 years ago

In 23296:

Resolve DOCUMENT_ROOT symlinks and standardize Windows slashing for various paths related to Multisite rewrite rule generation. props SergeyBiryukov, nacin, wpewill. fixes #23104 and #23073 for 3.5

Note: See TracTickets for help on using tickets.