캡챠키가 넘어오지 않는 경우 return false; 시킴

This commit is contained in:
gnuboard
2013-04-03 19:19:58 +09:00
parent 46010a0304
commit c817f62fea

View File

@ -198,6 +198,7 @@ function chk_captcha()
$captcha_cnt = (int)$_SESSION['ss_captcha_cnt'];
if ($captcha_cnt > 5) return false;
if (!trim($_POST['captcha_key'])) return false;
if (!isset($_POST['captcha_key'])) return false;
if ($_POST['captcha_key'] != $_SESSION['ss_captcha_key']) {
$_SESSION['ss_captcha_cnt'] = $captcha_cnt + 1;