summaryrefslogtreecommitdiffstats
path: root/system/helpers/form_helper.php
diff options
context:
space:
mode:
authorDerek Jones <derek.jones@ellislab.com>2011-08-31 21:18:48 +0200
committerDerek Jones <derek.jones@ellislab.com>2011-08-31 21:18:48 +0200
commit47a62548cfdcd5fb6588a2caa92d3b55ac05de6f (patch)
treeb1952e3cbfde4e1baf605526a573d112a4bc819d /system/helpers/form_helper.php
parentbbf2853c351425ea75f43599c3b229a8c323448c (diff)
parentef26dfcb705521be0ad85b00fdb735299bdd02d2 (diff)
Merge branch 'develop' of github.com:EllisLab/CodeIgniter 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 != '')
{