Skip to:
Content

BuddyPress.org

Opened 15 years ago

Closed 15 years ago

#203 closed defect (bug) (fixed)

Directory traversing breaks when buddypress files are symbolically linked.

Reported by: borkweb's profile borkweb 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' );

Change History (1)

#1 @apeatling
15 years ago

  • Resolution set to fixed
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.