Merge pull request #3006 from vlakoff/security

Fix in $_protected array of register_globals security procedure
diff --git a/system/core/Router.php b/system/core/Router.php
index ea4f4a4..1bb18b0 100644
--- a/system/core/Router.php
+++ b/system/core/Router.php
@@ -130,9 +130,8 @@
 				$this->set_class($routing['controller']);
 			}
 
-			if (isset($routing['function']))
+			if ( ! empty($routing['function']))
 			{
-				$routing['function'] = empty($routing['function']) ? 'index' : $routing['function'];
 				$this->set_method($routing['function']);
 			}
 		}