Hello guys
Recently I changed the forms I use in my websites and the text editor, from the “spaw editor” to the most commonly used “fckeditor”. PLUS I changed the hosting company I used for years. Magic quotes here are enabled, while they weren’t on the old one… So I’m starting making some general changes
Should I convert special characters like
‘ to ‘
” to "
& to &
< to <
etc, before entering them to the database?
Also, I should have a proper function that check magic quotes…? Like
function custom_addslashes($string){
$string = htmlspecialchars($string);
if (get_magic_quotes_gpc()==1)
return ($string);
else
return (addslashes($string));
}