Permalink
Browse files

Fix #1956

  • Loading branch information...
1 parent 7d394f8 commit c3751f843e9e4f646f3da2617df25cae6660f3af @narfbg narfbg committed Nov 2, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 system/core/URI.php
View
@@ -301,7 +301,7 @@ public function _filter_uri($str)
{
// preg_quote() in PHP 5.3 escapes -, so the str_replace() and addition of - to preg_quote() is to maintain backwards
// compatibility as many are unaware of how characters in the permitted_uri_chars will be parsed as a regex pattern
- if ( ! preg_match('|^['.str_replace(array('\\-', '\-'), '-', preg_quote($this->config->item('permitted_uri_chars'), '|')).']+$|i', $str))
+ if ( ! preg_match('|^['.str_replace(array('\\-', '\-'), '-', preg_quote($this->config->item('permitted_uri_chars'), '-')).']+$|i', $str))
{
show_error('The URI you submitted has disallowed characters.', 400);
}

0 comments on commit c3751f8

Please sign in to comment.