MantisBT: master-1.2.x 0fc80e9f

Author Committer Branch Timestamp Parent
jreese jreese master-1.2.x 2010-04-19 09:28 master-1.2.x de11008f
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