diff --git a/bbs/current_connect.php b/bbs/current_connect.php
index f9331a070..686522564 100644
--- a/bbs/current_connect.php
+++ b/bbs/current_connect.php
@@ -18,7 +18,7 @@ for ($i=0; $row=sql_fetch_array($result); $i++) {
$list[$i]['name'] = get_sideview($row['mb_id'], cut_str($row['mb_nick'], $config['cf_cut_name']), $row['mb_email'], $row['mb_homepage']);
} else {
if ($is_admin)
- $list[$i]['name'] = $row[lo_ip];
+ $list[$i]['name'] = $row['lo_ip'];
else
$list[$i]['name'] = preg_replace("/([0-9]+).([0-9]+).([0-9]+).([0-9]+)/", G5_IP_DISPLAY, $row['lo_ip']);
}
diff --git a/bbs/email_stop.php b/bbs/email_stop.php
index 8e0a9bfff..3635bb361 100644
--- a/bbs/email_stop.php
+++ b/bbs/email_stop.php
@@ -1,15 +1,15 @@
", $content);
+ $content = str_replace("\n", "
", $content);
}
// html 이면
diff --git a/bbs/link.php b/bbs/link.php
index 1ba9f8fee..e74536ca9 100644
--- a/bbs/link.php
+++ b/bbs/link.php
@@ -1,23 +1,23 @@
'
."\n".' >'
- ."\n".' >'.preg_replace("/\n/", "\n> ", get_text($row['me_memo'], 0))
+ ."\n".' >'.str_replace("\n", "\n> ", get_text($row['me_memo'], 0))
."\n".' >'
.' >';
diff --git a/bbs/new.php b/bbs/new.php
index d91c0a8e2..66a10188b 100644
--- a/bbs/new.php
+++ b/bbs/new.php
@@ -52,7 +52,7 @@ for ($i=0; $row=sql_fetch_array($result); $i++) {
// 원글
$comment = "";
$comment_link = "";
- $row2 = sql_fetch(" select * from {$tmp_write_table} where wr_id = '$row[wr_id]' ");
+ $row2 = sql_fetch(" select * from {$tmp_write_table} where wr_id = '{$row['wr_id']}' ");
$list[$i] = $row2;
$name = get_sideview($row2['mb_id'], cut_str($row2['wr_name'], $config['cf_cut_name']), $row2['wr_email'], $row2['wr_homepage']);
diff --git a/bbs/new_delete.php b/bbs/new_delete.php
index 6358d4885..e3df24ce8 100644
--- a/bbs/new_delete.php
+++ b/bbs/new_delete.php
@@ -44,7 +44,7 @@ for($i=0;$i