From 13bc72def74246f1daeb0b4c6f702437a0e5f33d Mon Sep 17 00:00:00 2001 From: kagla Date: Mon, 18 Apr 2022 11:47:22 +0900 Subject: [PATCH 1/2] =?UTF-8?q?ip2long=EC=9C=BC=EB=A1=9C=20=EB=B3=80?= =?UTF-8?q?=ED=99=98=EB=90=9C=20REMOTE=5FADDR=EC=9D=84=20=EC=9C=A0?= =?UTF-8?q?=EC=B6=94=ED=95=A0=EC=88=98=20=EC=97=86=EB=8F=84=EB=A1=9D=20md5?= =?UTF-8?q?(sha1(REMOTE=5FADDR))=EB=A1=9C=20=EC=B2=98=EB=A6=AC=ED=95=A8=20?= =?UTF-8?q?(kjsman=EB=8B=98,220418)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bbs/qawrite_update.php | 2 +- bbs/write_update.php | 2 +- plugin/kcaptcha/kcaptcha_mp3.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bbs/qawrite_update.php b/bbs/qawrite_update.php index bf74ef3c7..d973e3c8e 100644 --- a/bbs/qawrite_update.php +++ b/bbs/qawrite_update.php @@ -223,7 +223,7 @@ for ($i=1; $i<=$upload_count; $i++) { $shuffle = implode('', $chars_array); // 첨부파일 첨부시 첨부파일명에 공백이 포함되어 있으면 일부 PC에서 보이지 않거나 다운로드 되지 않는 현상이 있습니다. (길상여의 님 090925) - $upload[$i]['file'] = abs(ip2long($_SERVER['REMOTE_ADDR'])).'_'.substr($shuffle,0,8).'_'.replace_filename($filename); + $upload[$i]['file'] = md5(sha1($_SERVER['REMOTE_ADDR'])).'_'.substr($shuffle,0,8).'_'.replace_filename($filename); $dest_file = G5_DATA_PATH.'/qa/'.$upload[$i]['file']; diff --git a/bbs/write_update.php b/bbs/write_update.php index 32c87cd66..08a568193 100644 --- a/bbs/write_update.php +++ b/bbs/write_update.php @@ -570,7 +570,7 @@ if(isset($_FILES['bf_file']['name']) && is_array($_FILES['bf_file']['name'])) { $shuffle = implode('', $chars_array); // 첨부파일 첨부시 첨부파일명에 공백이 포함되어 있으면 일부 PC에서 보이지 않거나 다운로드 되지 않는 현상이 있습니다. (길상여의 님 090925) - $upload[$i]['file'] = abs(ip2long($_SERVER['REMOTE_ADDR'])).'_'.substr($shuffle,0,8).'_'.replace_filename($filename); + $upload[$i]['file'] = md5(sha1($_SERVER['REMOTE_ADDR'])).'_'.substr($shuffle,0,8).'_'.replace_filename($filename); $dest_file = G5_DATA_PATH.'/file/'.$bo_table.'/'.$upload[$i]['file']; diff --git a/plugin/kcaptcha/kcaptcha_mp3.php b/plugin/kcaptcha/kcaptcha_mp3.php index 67fa5c114..5672320a3 100644 --- a/plugin/kcaptcha/kcaptcha_mp3.php +++ b/plugin/kcaptcha/kcaptcha_mp3.php @@ -16,7 +16,7 @@ function make_mp3() $mp3s[] = $file; } - $ip = sprintf("%u", ip2long($_SERVER['REMOTE_ADDR'])); + $ip = md5(sha1($_SERVER['REMOTE_ADDR'])); $mp3_file = 'cache/kcaptcha-'.$ip.'_'.G5_SERVER_TIME.'.mp3'; $contents = ''; From fdd2d30f4e83119419e9f5d9065ca13a93632422 Mon Sep 17 00:00:00 2001 From: kagla Date: Mon, 18 Apr 2022 12:04:00 +0900 Subject: [PATCH 2/2] =?UTF-8?q?$desc=5Fname,=20$desc=5Fphone=20Undefined?= =?UTF-8?q?=20variable=20=EB=AC=B8=EC=A0=9C=20=ED=95=B4=EA=B2=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mobile/skin/member/basic/register_form.skin.php | 2 ++ skin/member/basic/register_form.skin.php | 2 ++ theme/basic/mobile/skin/member/basic/register_form.skin.php | 2 ++ theme/basic/skin/member/basic/register_form.skin.php | 4 +++- 4 files changed, 9 insertions(+), 1 deletion(-) diff --git a/mobile/skin/member/basic/register_form.skin.php b/mobile/skin/member/basic/register_form.skin.php index 85d13accb..90f33137b 100644 --- a/mobile/skin/member/basic/register_form.skin.php +++ b/mobile/skin/member/basic/register_form.skin.php @@ -47,6 +47,8 @@ if ($config['cf_cert_use'] && ($config['cf_cert_simple'] || $config['cf_cert_ipi