From fd1ec11ad10eda15a4c36ae65072067622d8c36d Mon Sep 17 00:00:00 2001 From: thisgun Date: Mon, 4 Dec 2017 14:26:12 +0900 Subject: [PATCH] =?UTF-8?q?=EA=B7=B8=EB=88=84=EB=B3=B4=EB=93=9C4=20import?= =?UTF-8?q?=20=EC=BD=94=EB=93=9C=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- g4_import_run.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/g4_import_run.php b/g4_import_run.php index f34569b93..936b13f13 100644 --- a/g4_import_run.php +++ b/g4_import_run.php @@ -382,6 +382,14 @@ document.onkeydown = noRefresh ; foreach($row as $key=>$val) { if(!in_array($key, $columns)) continue; + + if($key === 'bo_notice'){ + $val = str_replace("\n", ",", $val); + + if( substr($val, -1) === ',' ){ + $val = substr($val, 0, -1); + } + } $sql_common .= $comma . " $key = '".addslashes($val)."' ";