sms5 sql injection 취약점 수정

This commit is contained in:
chicpro
2015-04-07 09:50:14 +09:00
parent e28acc8495
commit 588a1a7c9d
3 changed files with 12 additions and 6 deletions

View File

@ -15,10 +15,13 @@ if (!$is_member)
if ($member['mb_level'] < $sms5['cf_level'])
alert("회원 {$sms5['cf_level']}레벨 이상만 문자전송이 가능합니다.");
if (!trim($mh_reply))
$mh_reply = preg_replace('#[^0-9\-]#', '', trim($mh_reply));
$mh_message = clean_xss_tags(trim($mh_message));
if (!$mh_reply)
alert('보내는 번호를 입력해주세요.');
if (!trim($mh_message))
if (!$mh_message)
alert('메세지를 입력해주세요.');
if ($is_admin != 'super')