summaryrefslogtreecommitdiffstats
path: root/system
diff options
context:
space:
mode:
authorAndrey Andreev <narf@devilix.net>2016-12-01 14:45:41 +0100
committerAndrey Andreev <narf@devilix.net>2016-12-01 14:45:41 +0100
commit9b5a84dfb0c8a4ba078beb516373e7bb7d8d3ed7 (patch)
treef54308feff8f6fed3924bb7bb60030738097c2f9 /system
parentfe58c1c633cdfc11efc22a4d9bd888fab4a2a15c (diff)
Remove previously deprecated FV Library method/rule prep_for_form()
Diffstat (limited to 'system')
-rw-r--r--system/libraries/Form_validation.php32
1 files changed, 0 insertions, 32 deletions
diff --git a/system/libraries/Form_validation.php b/system/libraries/Form_validation.php
index 384caf000..c2bc22f95 100644
--- a/system/libraries/Form_validation.php
+++ b/system/libraries/Form_validation.php
@@ -1488,38 +1488,6 @@ class CI_Form_validation {
// --------------------------------------------------------------------
/**
- * Prep data for form
- *
- * This function allows HTML to be safely shown in a form.
- * Special characters are converted.
- *
- * @deprecated 3.0.6 Not used anywhere within the framework and pretty much useless
- * @param mixed $data Input data
- * @return mixed
- */
- public function prep_for_form($data)
- {
- if ($this->_safe_form_data === FALSE OR empty($data))
- {
- return $data;
- }
-
- if (is_array($data))
- {
- foreach ($data as $key => $val)
- {
- $data[$key] = $this->prep_for_form($val);
- }
-
- return $data;
- }
-
- return str_replace(array("'", '"', '<', '>'), array('&#39;', '&quot;', '&lt;', '&gt;'), stripslashes($data));
- }
-
- // --------------------------------------------------------------------
-
- /**
* Prep URL
*
* @param string