summaryrefslogtreecommitdiffstats
path: root/system/helpers/form_helper.php
diff options
context:
space:
mode:
authorpurandi <free6300@gmail.com>2011-09-04 14:51:23 +0200
committerpurandi <free6300@gmail.com>2011-09-04 14:51:23 +0200
commitab0dbd4b992778678e00ea3f2a3dd4bf5f1ff504 (patch)
tree740d3cabe5e51f18578a72abf6e13e62fba9eb62 /system/helpers/form_helper.php
parentdcf3d1bf17e1354ff0a644f390ed590f2e65298b (diff)
parent2eb2557bf1c438d8fb7d612dbb76c6676eaec4d6 (diff)
Merge branch 'develop', remote-tracking branch 'origin/develop' into develop
Diffstat (limited to 'system/helpers/form_helper.php')
-rw-r--r--system/helpers/form_helper.php7
1 files changed, 2 insertions, 5 deletions
diff --git a/system/helpers/form_helper.php b/system/helpers/form_helper.php
index d9305c00b..130daee6a 100644
--- a/system/helpers/form_helper.php
+++ b/system/helpers/form_helper.php
@@ -642,11 +642,8 @@ if ( ! function_exists('form_prep'))
{
return $str;
}
-
- $str = htmlspecialchars($str);
-
- // In case htmlspecialchars misses these.
- $str = str_replace(array("'", '"'), array("&#39;", "&quot;"), $str);
+
+ $str = html_escape($str);
if ($field_name != '')
{