Explorar el Código

#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 hace 14 años
padre
commit
1fd844ad85
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  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;
 		}