Show
Ignore:
Timestamp:
08/04/2008 08:34:16 PM (4 months ago)
Author:
Shadowhand
Message:

Fixing #720, thanks isaiahdw.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/system/libraries/Router.php

    r3230 r3256  
    3939                { 
    4040                        // Set the query string to the current query string 
    41                         self::$query_string = '?'.trim($_SERVER['QUERY_STRING'], '&'); 
     41                        self::$query_string = '?'.trim($_SERVER['QUERY_STRING'], '&/'); 
    4242                } 
    4343 
     
    199199                        // Remove the URI from $_GET 
    200200                        unset($_GET[self::$current_uri]); 
     201 
     202                        // Remove the URI from $_SERVER['QUERY_STRING'] 
     203                        $_SERVER['QUERY_STRING'] = ltrim(substr($_SERVER['QUERY_STRING'], strlen(self::$current_uri)), '/&'); 
    201204 
    202205                        // Fixes really strange handling of a suffix in a GET string