Menu

#5 Permit "'" charachter

open
nobody
None
5
2005-06-14
2005-06-14
molten2
No

I suggest you to use this code:

$_POST['frm_description'] =
stripslashes(htmlentities($_POST['frm_description'],
ENT_QUOTES));
$_POST['frm_affected'] =
stripslashes(htmlentities($_POST['frm_affected'],
ENT_QUOTES));
$_POST['frm_scope'] =
stripslashes(htmlentities($_POST['frm_scope'],
ENT_QUOTES));

instead of

$_POST['frm_description'] =
strip_html($_POST['frm_description']);
$_POST['frm_affected'] =
strip_html($_POST['frm_affected']);
$_POST['frm_scope'] =
strip_html($_POST['frm_scope']);

to strip your entities from forms.

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.