Opened 16 years ago
Closed 16 years ago
#203 closed defect (bug) (fixed)
Directory traversing breaks when buddypress files are symbolically linked.
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Priority: | major | |
Severity: | Version: | ||
Component: | Keywords: | include, directory | |
Cc: |
Description
The way that a number of files are included (wp-load.php, for example) fails when symbolically linking buddypress from another directory.
Problem code:
require_once(dirname(dirname(dirname(dirname(dirname(FILE))))).'/wp-load.php');
This is peppered throughout a number of files. A possible solution would be:
require_once( preg_replace('/(.*)\/wp-content\/.*/', '\1', dirname(FILE)) . '/wp-load.php' );
Note: See
TracTickets for help on using
tickets.