diff options
Diffstat (limited to 'system/core')
-rwxr-xr-x | system/core/Security.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/system/core/Security.php b/system/core/Security.php index a6fd75fa4..39e4f7c24 100755 --- a/system/core/Security.php +++ b/system/core/Security.php @@ -203,9 +203,9 @@ class CI_Security { if ($exclude_uris = config_item('csrf_exclude_uris')) { $uri = load_class('URI', 'core'); - foreach ($exclude_uris as $excluded) { - $excluded = str_replace(array(':any', ':num'), array('[^/]+', '[0-9]+'), $excluded); - if (preg_match('#^'.$excluded.'$#', $uri->uri_string())) + foreach ($exclude_uris as $excluded) + { + if (preg_match('#^'.$excluded.'$#i'.(UTF8_ENABLED ? 'u' : ''), $uri->uri_string())) { return $this; } @@ -937,4 +937,4 @@ class CI_Security { } /* End of file Security.php */ -/* Location: ./system/core/Security.php */
\ No newline at end of file +/* Location: ./system/core/Security.php */ |