Commits

Phil Sturgeon committed bdbf5de

Some servers would trick URI into thinking it was being run in CLI mode, which broke routing.

  • Participants
  • Parent commits ff62cf7

Comments (0)

Files changed (1)

File system/core/URI.php

 	{
 		if (strtoupper($this->config->item('uri_protocol')) == 'AUTO')
 		{
-			// Arguments exist, it must be a command line request
-			if ( ! empty($_SERVER['argv']))
+			// Is the request coming from the command line?
+			if (defined('STDIN'))
 			{
 				$this->uri_string = $this->_parse_cli_args();
 				return;