php, codeigniter

get_magic_quotes_gpc()

디츠 2014. 10. 14. 17:03
if(get_magic_quotes_gpc()) {
	$contents = $_POST['contents'];
} else {
	$contents = addslashes($_POST['contents']);
}