diff options
author | caseyh <crh431@gmail.com> | 2014-08-18 11:10:24 +0200 |
---|---|---|
committer | caseyh <crh431@gmail.com> | 2014-08-18 11:10:24 +0200 |
commit | 5ac7c77ee60b108fb9dee84b5fc0acf04638c6f5 (patch) | |
tree | 02f7596ee925f5791698d625a8c05e1bd8fa98ac /system/core/Security.php | |
parent | 2f4c3bc5c2fac164d1c58ac9aaa09ae070687443 (diff) |
Alter Pull #3176 to follow discussion
Diffstat (limited to 'system/core/Security.php')
-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 */ |