MantisBT: master 5ac1fdf3

Author Committer Branch Timestamp Parent
jreese jreese master 2010-04-19 09:28 master 4ec992b0
Affected Issues  0011534: Incorrect url/path detection
Changeset

Fix 0011534: Incorrect path/short_path detection

Rather than attempting to try and decipher the path and short_path by
comparing the file's location on the filesytem with the document_root,
MantisBT should be looking at the PHP_SELF server var provided by PHP.
This variable is based on the current URL used to access the file, and
is not confused by symlinks or the document_root pointing directly to
the installation. It is also much simpler than the old method.

Tested on Linux and Windows with the following setups:

mod - config_defaults_inc.php Diff File