Skip to content

Commit

Permalink
그누보드4 import 코드 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
thisgun committed Dec 4, 2017
1 parent 9f89455 commit fd1ec11
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions g4_import_run.php
Original file line number Diff line number Diff line change
Expand Up @@ -382,6 +382,14 @@ function fsearchbox_submit(f)
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)."' ";

Expand Down

0 comments on commit fd1ec11

Please sign in to comment.