diff options
author | Phil Sturgeon <email@philsturgeon.co.uk> | 2011-08-30 00:32:16 +0200 |
---|---|---|
committer | Phil Sturgeon <email@philsturgeon.co.uk> | 2011-08-30 00:32:16 +0200 |
commit | d7a28663344fbb760134b5623b8cb441f4875f80 (patch) | |
tree | 388d65d299613c9cd93f5de11fb413be71143cb6 /system/helpers/form_helper.php | |
parent | 70e61b5dc0b240c4a3341ca65ad9f2f5254df1b5 (diff) | |
parent | 5c9b0d1b5618ade5c6aa70475b08b3066f14ff3e (diff) |
Merge pull request #325 from freewil/develop
always use charset config item
Diffstat (limited to 'system/helpers/form_helper.php')
-rw-r--r-- | system/helpers/form_helper.php | 7 |
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("'", """), $str); + + $str = html_escape($str); if ($field_name != '') { |