From cd6e54749c23a227b648d5f3ae3da2d5a62c253d Mon Sep 17 00:00:00 2001 From: Gianluca Sforna Date: Wed, 2 Jan 2008 10:44:58 +0000 Subject: [PATCH] Fix 8681: Mantis 1.1.0 has a dependency on stripos which was added in PHP 5 git-svn-id: http://mantisbt.svn.sourceforge.net/svnroot/mantisbt/branches/BRANCH_1_1_0@4853 f5dc347c-c33d-0410-90a0-b07cc1902cb9 --- config_defaults_inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config_defaults_inc.php b/config_defaults_inc.php index 25d2459e25..ed57801c9e 100644 --- a/config_defaults_inc.php +++ b/config_defaults_inc.php @@ -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 ); }