Ticket #720 (closed Bug: fixed)

Opened 4 months ago

Last modified 4 months ago

Follow up to r3226

Reported by: isaiahdw Owned by: Shadowhand
Priority: minor Milestone: 2.2
Component: Core Version: SVN HEAD
Keywords: Cc:

Description

Router::$query_string should match $_GET when using the alternative "index.php?/$0" .htaccess method.

I fixed this by adding the following to the setup function (right after $query_string is set).

// Remove the URI from Router::$query_string if it's there
self::$query_string = str_replace(array('?/'.self::$current_uri.'/&', '?/'.self::$current_uri.'&'), array('/?', '?'), self::$query_string);

This removes the current uri from $query_string if it's there. It also works for both "example/?test=test" and "example?test=test" urls.

Change History

Changed 4 months ago by Shadowhand

  • status changed from new to assigned

Changed 4 months ago by Shadowhand

  • status changed from assigned to closed
  • resolution set to fixed

Fixed in r3256.

Note: See TracTickets for help on using tickets.