summaryrefslogtreecommitdiffstats
path: root/user_guide_src/source/libraries/security.rst
diff options
context:
space:
mode:
authorAhmad Anbar <aanbar@gmail.com>2015-02-04 18:20:01 +0100
committerAhmad Anbar <aanbar@gmail.com>2015-02-04 18:20:01 +0100
commite5454f9b28f123a5549971f580255a065b2f8cc2 (patch)
treec4927e7b7afb0bf242976034630cc60f2f1db00f /user_guide_src/source/libraries/security.rst
parent6db62ab0ad0e223806a1367e12b1884b48dc65d7 (diff)
parenteccac6e6a73a4d1a5b40f383ce64359c2c94ae12 (diff)
Merge remote-tracking branch 'upstream/develop' into develop
Diffstat (limited to 'user_guide_src/source/libraries/security.rst')
-rw-r--r--user_guide_src/source/libraries/security.rst14
1 files changed, 7 insertions, 7 deletions
diff --git a/user_guide_src/source/libraries/security.rst b/user_guide_src/source/libraries/security.rst
index a39ef5976..27e6e561b 100644
--- a/user_guide_src/source/libraries/security.rst
+++ b/user_guide_src/source/libraries/security.rst
@@ -110,9 +110,9 @@ Regular expressions are also supported (case-insensitive)::
Class Reference
***************
-.. class:: CI_Security
+.. php:class:: CI_Security
- .. method:: xss_clean($str[, $is_image = FALSE])
+ .. php:method:: xss_clean($str[, $is_image = FALSE])
:param mixed $str: Input string or an array of strings
:returns: XSS-clean data
@@ -121,7 +121,7 @@ Class Reference
Tries to remove XSS exploits from the input data and returns the cleaned string.
If the optional second parameter is set to true, it will return boolean TRUE if the image is safe to use and FALSE if malicious data was detected in it.
- .. method:: sanitize_filename($str[, $relative_path = FALSE])
+ .. php:method:: sanitize_filename($str[, $relative_path = FALSE])
:param string $str: File name/path
:param bool $relative_path: Whether to preserve any directories in the file path
@@ -140,14 +140,14 @@ Class Reference
$filename = $this->security->sanitize_filename($this->input->post('filename'), TRUE);
- .. method:: get_csrf_token_name()
+ .. php:method:: get_csrf_token_name()
:returns: CSRF token name
:rtype: string
Returns the CSRF token name (the ``$config['csrf_token_name']`` value).
- .. method:: get_csrf_hash()
+ .. php:method:: get_csrf_hash()
:returns: CSRF hash
:rtype: string
@@ -155,7 +155,7 @@ Class Reference
Returns the CSRF hash value. Useful in combination with ``get_csrf_token_name()``
for manually building forms or sending valid AJAX POST requests.
- .. method:: entity_decode($str[, $charset = NULL])
+ .. php:method:: entity_decode($str[, $charset = NULL])
:param string $str: Input string
:param string $charset: Character set of the input string
@@ -167,7 +167,7 @@ Class Reference
If the ``$charset`` parameter is left empty, then your configured ``$config['charset']`` value will be used.
- .. method:: get_random_bytes($length)
+ .. php:method:: get_random_bytes($length)
:param int $length: Output length
:returns: A binary stream of random bytes or FALSE on failure