소스 검색

#331 Import.php could not be run in HTTP mode (when PHP running in CGI mode) - fix getting more bullet proof

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@974 a333f486-631f-4898-b8df-5754b55c2be0
romainq 14 년 전
부모
커밋
1fd844ad85
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      application/utils.inc.php

+ 2 - 1
application/utils.inc.php

@@ -46,7 +46,8 @@ class utils
 	public static function IsModeCLI()
 	{
 		$sSAPIName = php_sapi_name();
-		if ($sSAPIName == 'cli')
+		$sCleanName = strtolower(trim($sSAPIName));
+		if ($sCleanName == 'cli')
 		{
 			return true;
 		}