Changeset 1977
- Timestamp:
- 02/06/2008 06:35:45 PM (8 months ago)
- Files:
-
- 1 modified
-
trunk/system/libraries/Router.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/system/libraries/Router.php
r1976 r1977 242 242 } 243 243 244 // Remove slashes from the start and end of the URI 245 self::$current_uri = trim(self::$current_uri, '/'); 246 244 247 if (self::$current_uri !== '') 245 248 { … … 253 256 } 254 257 255 // Re move extra slashes from the segments that could cause fucked up routing256 self::$current_uri = preg_replace('!//+!', '/', trim(self::$current_uri, '/'));258 // Reduce multiple slashes into single slashes 259 self::$current_uri = preg_replace('!//+!', '/', self::$current_uri); 257 260 } 258 261 }
