답변 5개 / 댓글 6개
//==============================================================================
// SQL Injection 등으로 부터 보호를 위해 sql_escape_string() 적용
//------------------------------------------------------------------------------
// magic_quotes_gpc 에 의한 backslashes 제거
if (function_exists('get_magic_quotes_gpc') && get_magic_quotes_gpc()) {
$_POST = array_map_deep('stripslashes', $_POST);
$_GET = array_map_deep('stripslashes', $_GET);
$_COOKIE = array_map_deep('stripslashes', $_COOKIE);
$_REQUEST = array_map_deep('stripslashes', $_REQUEST);
}
-->
//===================================================================
// SQL Injection 등으로 부터 보호를 위해 sql_escape_string() 적용
//------------------------------------------------------------------------------
// magic_quotes_gpc 에 의한 backslashes 제거
if (function_exists('get_magic_quotes_gpc') ) {
$_POST = array_map_deep('stripslashes', $_POST);
$_GET = array_map_deep('stripslashes', $_GET);
$_COOKIE = array_map_deep('stripslashes', $_COOKIE);
$_REQUEST = array_map_deep('stripslashes', $_REQUEST);
}
답변에 대한 댓글 3개
답변에 대한 댓글 2개
Warning: Undefined array key "host" in C:\xampp\html\common.php on line 53
Fatal error: Uncaught Error: Call to undefined function get_magic_quotes_gpc() in C:\xampp\html\common.php:101 Stack trace: #0 C:\xampp\html\_common.php(2): include_once() #1 C:\xampp\html\index.php(2): include_once('C:\\xampp\\html\\_...') #2 {main} thrown in C:\xampp\html\common.php on line 101
이 오류가 뜨네요 ㅠ
답변을 작성하려면 로그인이 필요합니다.