summaryrefslogtreecommitdiffstats
path: root/user_guide_src/source/helpers/security_helper.rst
diff options
context:
space:
mode:
Diffstat (limited to 'user_guide_src/source/helpers/security_helper.rst')
-rw-r--r--user_guide_src/source/helpers/security_helper.rst12
1 files changed, 6 insertions, 6 deletions
diff --git a/user_guide_src/source/helpers/security_helper.rst b/user_guide_src/source/helpers/security_helper.rst
index 2e26890b0..103880cf9 100644
--- a/user_guide_src/source/helpers/security_helper.rst
+++ b/user_guide_src/source/helpers/security_helper.rst
@@ -24,7 +24,7 @@ Available Functions
The following functions are available:
-.. function:: xss_clean($str[, $is_image = FALSE])
+.. php:function:: xss_clean($str[, $is_image = FALSE])
:param string $str: Input data
:param bool $is_image: Whether we're dealing with an image
@@ -36,7 +36,7 @@ The following functions are available:
This function is an alias for ``CI_Input::xss_clean()``. For more info,
please see the :doc:`Input Library <../libraries/input>` documentation.
-.. function:: sanitize_filename($filename)
+.. php:function:: sanitize_filename($filename)
:param string $filename: Filename
:returns: Sanitized file name
@@ -49,7 +49,7 @@ The following functions are available:
documentation.
-.. function:: do_hash($str[, $type = 'sha1'])
+.. php:function:: do_hash($str[, $type = 'sha1'])
:param string $str: Input
:param string $type: Algorithm
@@ -73,7 +73,7 @@ The following functions are available:
.. note:: This function is DEPRECATED. Use the native ``hash()`` instead.
-.. function:: strip_image_tags($str)
+.. php:function:: strip_image_tags($str)
:param string $str: Input string
:returns: The input string with no image tags
@@ -91,7 +91,7 @@ The following functions are available:
documentation.
-.. function:: encode_php_tags($str)
+.. php:function:: encode_php_tags($str)
:param string $str: Input string
:returns: Safely formatted string
@@ -99,7 +99,7 @@ The following functions are available:
This is a security function that converts PHP tags to entities.
- .. note:: :func:`xss_clean()` does this automatically, if you use it.
+ .. note:: :php:func:`xss_clean()` does this automatically, if you use it.
Example::