Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

symbolic links #4

Open
oszii opened this Issue · 0 comments

1 participant

@oszii

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.