View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0014081 | mantisbt | installation | public | 2012-03-23 18:00 | 2014-09-23 18:05 |
Reporter | bsmither | Assigned To | dregad | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Platform | Windows Server 2003 | ||||
Product Version | 1.2.9 | ||||
Target Version | 1.2.12 | Fixed in Version | 1.2.12 | ||
Summary | 0014081: Use of DIRECTORY_SEPARATOR in URLs | ||||
Description | Links created in: More info as soon as the real culprit is discovered. | ||||
Tags | No tags attached. | ||||
Attached Files | |||||
This is specific to www.example.com/admin/index.php There is also the by-product in which the backslash is converted to the three-character string %5C. Also, I see no link (malformed or otherwise) for the file admin.css. |
|
On Windows, this is what happens: Suggest in config.defaults.inc.php, lines 118, 119, make sure to str_replace('\','/',$var). Edit: Nope, that is not the correct solution. |
|
Can you attach an incorrect index.php as rendered in the browser? |
|
The attached file is the HTML as saved by the browser of the unmodified: I have since changed lines 118-119 from: $t_path = basename( $t_path ) == "admin" ? dirname( $t_path ) . '/' : $t_path; to: $t_path = basename( $t_path ) == "admin" ? str_replace('\','',dirname( $t_path ) . '/') : $t_path; |
|
I suggest you have a look at the fix implemented in config_defaults_inc.php by grangeway in the master branch, I think addresses exactly this problem, albeit in a slightly different way. https://github.com/mantisbt/mantisbt/blob/master/config_defaults_inc.php#L138 If you confirm that, I'll backport the change to 1.2.x EDIT: added link to file on github |
|
Marking as 'acknowledged' not resolved/closed to track that change gets ported to master-2.0.x branch |
|
MantisBT: master-1.2.x 426fdbd1 2010-08-14 04:05 Committer: Damien Regad Details Diff |
Fix $t_path on windows Backported from master e7ee768d97e078a1a669ba6279671e58e9936ba8 Signed-off-by: Damien Regad <damien.regad@merckgroup.com> |
Affected Issues 0014081 |
|
mod - config_defaults_inc.php | Diff File | ||
MantisBT: master e7ee768d 2010-08-14 11:05 Details Diff |
Fix $t_path on windows |
Affected Issues 0014081 |
|
mod - config_defaults_inc.php | Diff File |