From 13bc72def74246f1daeb0b4c6f702437a0e5f33d Mon Sep 17 00:00:00 2001 From: kagla Date: Mon, 18 Apr 2022 11:47:22 +0900 Subject: [PATCH] =?UTF-8?q?ip2long=EC=9C=BC=EB=A1=9C=20=EB=B3=80=ED=99=98?= =?UTF-8?q?=EB=90=9C=20REMOTE=5FADDR=EC=9D=84=20=EC=9C=A0=EC=B6=94?= =?UTF-8?q?=ED=95=A0=EC=88=98=20=EC=97=86=EB=8F=84=EB=A1=9D=20md5(sha1(REM?= =?UTF-8?q?OTE=5FADDR))=EB=A1=9C=20=EC=B2=98=EB=A6=AC=ED=95=A8=20(kjsman?= =?UTF-8?q?=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 = '';