diff options
author | Andrey Andreev <narf@bofh.bg> | 2012-11-02 15:50:00 +0100 |
---|---|---|
committer | Andrey Andreev <narf@bofh.bg> | 2012-11-02 15:50:00 +0100 |
commit | c3751f843e9e4f646f3da2617df25cae6660f3af (patch) | |
tree | a96b47cc4c1afde35a57d3348bacad7a48592c1e /system | |
parent | 7d394f8cc75dff27324279bfbaffb1a487ea6dc7 (diff) |
Fix #1956
Diffstat (limited to 'system')
-rw-r--r-- | system/core/URI.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/system/core/URI.php b/system/core/URI.php index e2cac8d89..91740254c 100644 --- a/system/core/URI.php +++ b/system/core/URI.php @@ -301,7 +301,7 @@ class CI_URI { { // 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); } |