diff options
author | Eric Barnes <eric@ericlbarnes.com> | 2011-08-29 05:59:15 +0200 |
---|---|---|
committer | Eric Barnes <eric@ericlbarnes.com> | 2011-08-29 05:59:15 +0200 |
commit | 65faf9fb927cd20bc0b98f0f33ae662a2611c6de (patch) | |
tree | ed0677704edeb364ed17080b8c993e894550c024 /user_guide/libraries | |
parent | 91249f1154c6cc078afbf23faa60b9f6414ab597 (diff) | |
parent | 4f17de94737f5eb9e1230f7d854dea611ebd9901 (diff) |
Merge branch 'develop' into feature/unit-tests
Diffstat (limited to 'user_guide/libraries')
-rw-r--r-- | user_guide/libraries/form_validation.html | 7 | ||||
-rw-r--r-- | user_guide/libraries/security.html | 3 |
2 files changed, 10 insertions, 0 deletions
diff --git a/user_guide/libraries/form_validation.html b/user_guide/libraries/form_validation.html index d9d8a4502..ede1913e0 100644 --- a/user_guide/libraries/form_validation.html +++ b/user_guide/libraries/form_validation.html @@ -1042,6 +1042,13 @@ POST array:</p> </tr> <tr> + <td class="td"><strong>is_unique</strong></td> + <td class="td">Yes</td> + <td class="td">Returns FALSE if the form element is not unique in a database table.</td> + <td class="td">is_unique[table.field]</td> + </tr> + + <tr> <td class="td"><strong>valid_email</strong></td> <td class="td">No</td> <td class="td">Returns FALSE if the form element does not contain a valid email address.</td> diff --git a/user_guide/libraries/security.html b/user_guide/libraries/security.html index dd62a4386..cbe12d852 100644 --- a/user_guide/libraries/security.html +++ b/user_guide/libraries/security.html @@ -116,6 +116,9 @@ Note: This function should only be used to deal with data upon submission. It's <p>If you use the <a href="../helpers/form_helper.html">form helper</a> the <var>form_open()</var> function will automatically insert a hidden csrf field in your forms.</p> +<p>Select URIs can be whitelisted from csrf protection (for example API endpoints expecting externally POSTed content). You can add these URIs by editing the 'csrf_exclude_uris' config parameter:</p> +<code>$config['csrf_exclude_uris'] = array('api/person/add');</code> + </div> <!-- END CONTENT --> |