Browse Source

Fix CLI mode detection for some shared hosts.

Franz Liedke 12 years ago
parent
commit
d051994e2c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      laravel/request.php

+ 1 - 1
laravel/request.php

@@ -196,7 +196,7 @@ class Request {
 	 */
 	public static function cli()
 	{
-		return defined('STDIN');
+		return defined('STDIN') || (substr(PHP_SAPI, 0, 3) == 'cgi' && getenv('TERM'));
 	}
 
 	/**