summaryrefslogtreecommitdiff
path: root/system/libraries/Router.php
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2009-12-21 20:05:27 -0800
committerBharat Mediratta <bharat@menalto.com>2009-12-21 20:05:27 -0800
commit9285c8c66c530196399eb05bb5561c3fa5538335 (patch)
tree7cec68583c01b5b365e7669fefc1adc6360e89a5 /system/libraries/Router.php
parent9c5df1d31bd214fab051b71d092c751a1da20ecc (diff)
Updated Kohana to r4724
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);