Skip to content
This repository

symbolic links #4

Open
oszii opened this Issue March 12, 2010 · 0 comments

1 participant

oszii
oszii
oszii commented March 12, 2010

Hallo,

the check, if the files are in the base directory do not work, if the files are in outsided folders linked with symbolic links. Solution could be:
file index.php
change line 117 = $fileDir = $settings['baseDir'].'/'.$matchResult[1];
against $fileDir = realpath($settings['baseDir']).'/'.$matchResult[1];

change line 121 = if (strpos(realpath($fileDir), realpath($settings['baseDir'])) !== 0) debugExit("File is out of base directory.");
against if (strpos($fileDir, realpath($settings['baseDir'])) !== 0) debugExit("File is out of base directory.");

(Could be the solution for the problem with Wordpress?)

Greetz

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.