Ticket #304 (closed Bug: worksforme)
+ at end of allowed characters results in preg compile error
| Reported by: | gregmac | Owned by: | Geert |
|---|---|---|---|
| Priority: | major | Milestone: | 2.1 |
| Component: | Core | Version: | |
| Keywords: | Cc: |
Description
Error:
preg_match() [function.preg-match]: Compilation failed: range out of order in character class at offset 18
Error occurred at line 275 of system/libraries/Router.php.
Stack Trace
* system/libraries/Router.php [275]:
preg_match( |^[a-z 0-9~%\.\:_-\+]+$|iu, media )
Working router.php:
$config['_allowed'] = 'a-z 0-9~%.:_+-';
Non working:
$config['_allowed'] = 'a-z 0-9~%.:_-+';
Change History
Note: See
TracTickets for help on using
tickets.
