Some servers would trick URI into thinking it was being run in CLI mode, which broke routing.
diff --git a/system/core/URI.php b/system/core/URI.php
index 9990159..1b479e9 100644
--- a/system/core/URI.php
+++ b/system/core/URI.php
@@ -61,8 +61,8 @@
{
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;