diff --git a/adm/member_list_update.php b/adm/member_list_update.php index 6c5049a86..eb6d8f791 100644 --- a/adm/member_list_update.php +++ b/adm/member_list_update.php @@ -10,6 +10,8 @@ if (!count($_POST['chk'])) { auth_check($auth[$sub_menu], 'w'); +check_admin_token(); + if ($_POST['act_button'] == "선택수정") { for ($i=0; $i + Order allow,deny Deny from all diff --git a/lib/common.lib.php b/lib/common.lib.php index c205eaf8d..84d2c14d3 100644 --- a/lib/common.lib.php +++ b/lib/common.lib.php @@ -2967,9 +2967,13 @@ function replace_filename($name) @session_start(); $ss_id = session_id(); $usec = get_microtime(); - $ext = array_pop(explode('.', $name)); + $file_path = pathinfo($name); + $ext = $file_path['extension']; + $return_filename = sha1($ss_id.$_SERVER['REMOTE_ADDR'].$usec); + if( $ext ) + $return_filename .= '.'.$ext; - return sha1($ss_id.$_SERVER['REMOTE_ADDR'].$usec).'.'.$ext; + return $return_filename; } // 아이코드 사용자정보