Przeglądaj źródła

#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 lat temu
rodzic
commit
1fd844ad85
1 zmienionych plików z 2 dodań i 1 usunięć
  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;
 		}