5.6.16 버전에서 게시판 생성이 안되는 오류 수정
This commit is contained in:
@ -1439,7 +1439,7 @@ function frm_check_file(){
|
|||||||
|
|
||||||
return false;
|
return false;
|
||||||
} else {
|
} else {
|
||||||
jQuery("#admin_captcha_box").hide();
|
// jQuery("#admin_captcha_box").hide();
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
@ -36,8 +36,22 @@ if ($w == '' && in_array($bo_table, get_bo_table_banned_word())) {
|
|||||||
$bo_include_head = isset($_POST['bo_include_head']) ? preg_replace(array("#[\\\]+$#", "#(<\?php|<\?)#i"), "", substr($_POST['bo_include_head'], 0, 255)) : '';
|
$bo_include_head = isset($_POST['bo_include_head']) ? preg_replace(array("#[\\\]+$#", "#(<\?php|<\?)#i"), "", substr($_POST['bo_include_head'], 0, 255)) : '';
|
||||||
$bo_include_tail = isset($_POST['bo_include_tail']) ? preg_replace(array("#[\\\]+$#", "#(<\?php|<\?)#i"), "", substr($_POST['bo_include_tail'], 0, 255)) : '';
|
$bo_include_tail = isset($_POST['bo_include_tail']) ? preg_replace(array("#[\\\]+$#", "#(<\?php|<\?)#i"), "", substr($_POST['bo_include_tail'], 0, 255)) : '';
|
||||||
|
|
||||||
// 관리자가 자동등록방지를 사용해야 할 경우
|
$check_captcha = false;
|
||||||
if ($board && (isset($board['bo_include_head']) && $board['bo_include_head'] !== $bo_include_head || $board['bo_include_tail'] !== $bo_include_tail)) {
|
|
||||||
|
// 관리자가 자동등록방지 CAPTCHA를 사용해야 할 경우
|
||||||
|
if ($w === 'u') {
|
||||||
|
if (isset($board['bo_include_head'], $board['bo_include_tail']) &&
|
||||||
|
($board['bo_include_head'] !== $bo_include_head || $board['bo_include_tail'] !== $bo_include_tail)) {
|
||||||
|
$check_captcha = true;
|
||||||
|
}
|
||||||
|
} elseif ($w === '') {
|
||||||
|
if ($bo_include_head !== '_head.php' || $bo_include_tail !== '_tail.php') {
|
||||||
|
$check_captcha = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// 실제 CAPTCHA 검증
|
||||||
|
if ($check_captcha) {
|
||||||
include_once(G5_CAPTCHA_PATH . '/captcha.lib.php');
|
include_once(G5_CAPTCHA_PATH . '/captcha.lib.php');
|
||||||
|
|
||||||
if (!chk_captcha()) {
|
if (!chk_captcha()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user