Skip to content

Commit

Permalink
Fix 8681: Mantis 1.1.0 has a dependency on stripos which was added in…
Browse files Browse the repository at this point in the history
… PHP 5

git-svn-id: http://mantisbt.svn.sourceforge.net/svnroot/mantisbt/branches/BRANCH_1_1_0@4853 f5dc347c-c33d-0410-90a0-b07cc1902cb9
  • Loading branch information
giallu committed Jan 2, 2008
1 parent 70ad63a commit cd6e547
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config_defaults_inc.php
Expand Up @@ -101,7 +101,7 @@
# Remove /api/soap/ from the path to handle the case where the config_defaults_inc.php is included from the
# soap api.
$t_soap_api_path = '/api/soap';
$t_soap_api_path_pos = stripos( $t_path, $t_soap_api_path );
$t_soap_api_path_pos = strpos( strtolower( $t_path ), $t_soap_api_path );
if ( $t_soap_api_path_pos == ( strlen( $t_path ) - strlen( $t_soap_api_path ) ) ) {
$t_path = substr( $t_path, 0, $t_soap_api_path_pos );
}
Expand Down

0 comments on commit cd6e547

Please sign in to comment.