Created
March 15, 2012 17:11
-
-
Save jmhobbs/2045349 to your computer and use it in GitHub Desktop.
Make Kohana 3 Routes Case Insensitive (globally)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* APPPATH/classes/route.php */ | |
class Route extends Kohana_Route { | |
public static function compile ( $uri, array $regex = NULL ) { | |
if ( ! is_string( $uri ) ) { return; } | |
return parent::compile( $uri, $regex ) . 'i'; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment