View Issue Details

IDProjectCategoryView StatusLast Update
0008750mantisbtbugtrackerpublic2008-01-19 04:25
Reporterthansen Assigned Tovboctor  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionduplicate 
Product Version1.1.0 
Summary0008750: $g_path incorrectly initialized in config_defaults_inc.php when stripos returns false
Description

$t_path is incorrectly cleared when mantis lives in a subdir with the same strlen as $t_soap_api_path. (Ie. /mantisbt and /api/soap are the same length) causing all links using $g_path/%path% to be wrong.

A quick fix (no taking bug 0008749 into account) was to use the === comparison operator to make sure both type and value matches.

if ( $t_soap_api_path_pos === ( strlen( $t_path ) - strlen( $t_soap_api_path ) ) ) {

TagsNo tags attached.

Relationships

duplicate of 0008721 closedvboctor css and icon paths incorrect 

Activities

vboctor

vboctor

2008-01-15 23:57

manager   ~0016673

Isn't this a duplicate of 0008721?

thansen

thansen

2008-01-16 09:00

reporter   ~0016677

0008721 and 0008716 it would seem... And I thought I was so careful searching for this bug before reporting... Oh well... Sorry.