summaryrefslogtreecommitdiffstats
path: root/user_guide_src/source/libraries/security.rst
diff options
context:
space:
mode:
authorAndrey Andreev <narf@devilix.net>2014-08-18 11:19:01 +0200
committerAndrey Andreev <narf@devilix.net>2014-08-18 11:19:01 +0200
commit3783be66dd29cc079dffc91d6e74f880e56f1f84 (patch)
treebfa5d226b046c6862f484a913ac11572b258a12b /user_guide_src/source/libraries/security.rst
parent22ce276f4f696d69c11ee1d7c8b8acee67a97b09 (diff)
parent8ef828129c559705447dd66a597071de5ae564a9 (diff)
Merge pull request #3176 from caseyh/develop
CSRF whitelist supports regex
Diffstat (limited to 'user_guide_src/source/libraries/security.rst')
-rw-r--r--user_guide_src/source/libraries/security.rst7
1 files changed, 6 insertions, 1 deletions
diff --git a/user_guide_src/source/libraries/security.rst b/user_guide_src/source/libraries/security.rst
index fb875a0d9..19480b4f8 100644
--- a/user_guide_src/source/libraries/security.rst
+++ b/user_guide_src/source/libraries/security.rst
@@ -97,6 +97,11 @@ by editing the 'csrf_exclude_uris' config parameter::
$config['csrf_exclude_uris'] = array('api/person/add');
+Optionally, you can use regular expressions in the URIs::
+
+ $config['csrf_exclude_uris'] = array('api/record/[0-9]+','api/title/[a-zA-Z]+');
+
+
***************
Class Reference
***************
@@ -156,4 +161,4 @@ Class Reference
This method acts a lot like PHP's own native ``html_entity_decode()`` function in ENT_COMPAT mode, only
it tries to detect HTML entities that don't end in a semicolon because some browsers allow that.
- If the ``$charset`` parameter is left empty, then your configured ``$config['charset']`` value will be used. \ No newline at end of file
+ If the ``$charset`` parameter is left empty, then your configured ``$config['charset']`` value will be used.