summaryrefslogtreecommitdiff
path: root/system/libraries/Router.php
diff options
context:
space:
mode:
Diffstat (limited to 'system/libraries/Router.php')
-rw-r--r--system/libraries/Router.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/system/libraries/Router.php b/system/libraries/Router.php
index 82dbb9b5..18e01af2 100644
--- a/system/libraries/Router.php
+++ b/system/libraries/Router.php
@@ -2,7 +2,7 @@
/**
* Router
*
- * $Id: Router.php 4679 2009-11-10 01:45:52Z isaiah $
+ * $Id: Router.php 4693 2009-12-04 17:11:16Z cbandy $
*
* @package Core
* @author Kohana Team
@@ -38,7 +38,7 @@ class Router_Core {
if ( ! empty($_SERVER['QUERY_STRING']))
{
// Set the query string to the current query string
- Router::$query_string = '?'.trim(urldecode($_SERVER['QUERY_STRING']), '&/');
+ Router::$query_string = '?'.urldecode(trim($_SERVER['QUERY_STRING'], '&'));
}
if (Router::$routes === NULL)
@@ -173,7 +173,7 @@ class Router_Core {
*/
public static function find_uri()
{
- if (PHP_SAPI === 'cli')
+ if (Kohana::$server_api === 'cli')
{
// Command line requires a bit of hacking
if (isset($_SERVER['argv'][1]))
@@ -181,9 +181,9 @@ class Router_Core {
Router::$current_uri = $_SERVER['argv'][1];
// Remove GET string from segments
- if (($query = strpos(Router::$current_uri, '?')) !== FALSE)
+ if (strpos(Router::$current_uri, '?') !== FALSE)
{
- list (Router::$current_uri, $query) = explode('?', Router::$current_uri, 2);
+ list(Router::$current_uri, $query) = explode('?', Router::$current_uri, 2);
// Parse the query string into $_GET
parse_str($query, $_GET);