escape_trim 함수 오류 수정

This commit is contained in:
chicpro
2014-04-24 11:30:16 +09:00
parent 282387cc17
commit a2f4c098e3

View File

@ -1927,18 +1927,14 @@ function sql_real_escape_string($field)
{ {
global $g5; global $g5;
if($field != '')
return mysql_real_escape_string($field, $g5['connect_db']); return mysql_real_escape_string($field, $g5['connect_db']);
} }
function escape_trim($field) function escape_trim($field)
{ {
if ($field) {
$str = call_user_func(G5_ESCAPE_FUNCTION, $field); $str = call_user_func(G5_ESCAPE_FUNCTION, $field);
return $str; return $str;
} }
}
// $_POST 형식에서 checkbox 엘리먼트의 checked 속성에서 checked 가 되어 넘어 왔는지를 검사 // $_POST 형식에서 checkbox 엘리먼트의 checked 속성에서 checked 가 되어 넘어 왔는지를 검사