summaryrefslogtreecommitdiffstats
path: root/user_guide_src/source/libraries/security.rst
diff options
context:
space:
mode:
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