diff --git a/bbs/view.php b/bbs/view.php
index 43e59a575..35b8b6557 100644
--- a/bbs/view.php
+++ b/bbs/view.php
@@ -121,9 +121,7 @@ else if (strstr($view['wr_option'], 'html2'))
$view['content'] = conv_content($view['wr_content'], $html);
if (strstr($sfl, 'content'))
$view['content'] = search_font($stx, $view['content']);
-//$view['content'] = preg_replace("/(\
]*)(\>)/i", "\\1 onclick='image_window(this)'", $view['content']);
-//$view['rich_content'] = preg_replace("/{img\:([0-9]+)[:]?([^}]*)}/ie", "view_image(\$view, '\\1', '\\2')", $view['content']);
$view['rich_content'] = preg_replace("/{이미지\:([0-9]+)[:]?([^}]*)}/ie", "view_image(\$view, '\\1', '\\2')", $view['content']);
$is_signature = false;
@@ -133,8 +131,6 @@ if ($board['bo_use_signature'] && $view['mb_id']) {
$mb = get_member($view['mb_id']);
$signature = $mb['mb_signature'];
- //$signature = bad_tag_convert($signature);
- // 081022 : CSRF 보안 결함으로 인한 코드 수정
$signature = conv_content($signature, 1);
}
diff --git a/js/common.js b/js/common.js
index 24f36d4e1..bdec9ce55 100644
--- a/js/common.js
+++ b/js/common.js
@@ -182,142 +182,6 @@ function delete_cookie(name)
document.cookie = name + "=" + value + "; path=/; expires=" + today.toGMTString();
}
-// 이미지의 크기에 따라 새창의 크기가 변경됩니다.
-// zzzz님께서 알려주셨습니다. 2005/04/12
-function image_window(img)
-{
- var w = img.tmp_width;
- var h = img.tmp_height;
- var winl = (screen.width-w)/2;
- var wint = (screen.height-h)/3;
-
- if (w >= screen.width) {
- winl = 0;
- h = (parseInt)(w * (h / w));
- }
-
- if (h >= screen.height) {
- wint = 0;
- w = (parseInt)(h * (w / h));
- }
-
- var js_url = "", $str);
- // FLASH XSS 공격에 의해 주석 처리 - 110406
- //$str = preg_replace("/\[\\]/i", "", $str);
- $str = preg_replace("/\[\]*\>[^\s]*\<\/a\>\]/i", "
", $str);
?>