diff --git a/adm/mail_select_list.php b/adm/mail_select_list.php index 67689863b..db05cca50 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 = '\n'; + $cr = "\n"; $bg = 'bg'.($i%2); ?> diff --git a/adm/mail_select_update.php b/adm/mail_select_update.php index 90f720e40..c87adc123 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('\n', conv_unescape_nl($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 2d59c429f..978f38e09 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', '\\n', '\r'); - $replace = array('', '\n', '\n', ''); + $search = array('\\r', '\r', '\\n', '\n'); + $replace = array('', '', "\n", "\n"); return str_replace($search, $replace, $str); }