Opened 18 years ago
Closed 18 years ago
#203 closed defect (bug) (fixed)
Directory traversing breaks when buddypress files are symbolically linked.
| Reported by: | borkweb | Owned by: | |
|---|---|---|---|
| Priority: | major | Milestone: | |
| Component: | Version: | ||
| Severity: | 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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)