diff --git a/adm/mail_select_list.php b/adm/mail_select_list.php index d43d6c200..67689863b 100644 --- a/adm/mail_select_list.php +++ b/adm/mail_select_list.php @@ -94,7 +94,7 @@ include_once('./admin.head.php'); while ($row=sql_fetch_array($result)) { $i++; $ma_list .= $cr . $row['mb_email'] . "||" . $row['mb_id'] . "||" . $row['mb_name'] . "||" . $row['mb_nick'] . "||" . $row['mb_datetime']; - $cr = chr(30); + $cr = '\n'; $bg = 'bg'.($i%2); ?> diff --git a/adm/mail_select_update.php b/adm/mail_select_update.php index 5b0f5874e..90f720e40 100644 --- a/adm/mail_select_update.php +++ b/adm/mail_select_update.php @@ -36,7 +36,7 @@ $ma_id = trim($_POST['ma_id']); $select_member_list = trim($_POST['ma_list']); //print_r2($_POST); EXIT; -$member_list = explode(chr(30), $select_member_list); +$member_list = explode('\n', conv_unescape_nl($select_member_list)); // 메일내용 가져오기 $sql = "select ma_subject, ma_content from {$g5['mail_table']} where ma_id = '$ma_id' "; diff --git a/lib/common.lib.php b/lib/common.lib.php index 3b4cb1362..2d59c429f 100644 --- a/lib/common.lib.php +++ b/lib/common.lib.php @@ -2619,8 +2619,8 @@ function conv_date_format($format, $date, $add='') // unescape nl 얻기 function conv_unescape_nl($str) { - $search = array('\\r', '\\n', '\r'); - $replace = array('', '\n', ''); + $search = array('\\r', '\\\n', '\\n', '\r'); + $replace = array('', '\n', '\n', ''); return str_replace($search, $replace, $str); }