From 1224bda539f378ecaa77c9956ca2ed057681edb9 Mon Sep 17 00:00:00 2001 From: gnuboard Date: Mon, 11 Mar 2013 15:20:33 +0900 Subject: [PATCH] =?UTF-8?q?image=5Fwindow=20=ED=95=A8=EC=88=98=20=EA=B4=80?= =?UTF-8?q?=EB=A0=A8=EC=BD=94=EB=93=9C=20=EC=82=AD=EC=A0=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bbs/view.php | 4 - js/common.js | 136 ------------------ mobile/skin/board/basic/view_comment.skin.php | 3 - .../skin/board/gallery/view_comment.skin.php | 3 - skin/board/basic/view_comment.skin.php | 3 - skin/board/gallery/view_comment.skin.php | 3 - 6 files changed, 152 deletions(-) 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); ?>
style="margin-left:px;border-top-color:#e0e0e0">
diff --git a/mobile/skin/board/gallery/view_comment.skin.php b/mobile/skin/board/gallery/view_comment.skin.php index a16dea2f3..c85548b8f 100644 --- a/mobile/skin/board/gallery/view_comment.skin.php +++ b/mobile/skin/board/gallery/view_comment.skin.php @@ -20,9 +20,6 @@ var char_max = parseInt(); // 최대 if (strstr($list[$i]['wr_option'], "secret")) $str = $str; $str = preg_replace("/\[\\]/i", "", $str); - // FLASH XSS 공격에 의해 주석 처리 - 110406 - //$str = preg_replace("/\[\\]/i", "", $str); - $str = preg_replace("/\[\]*\>[^\s]*\<\/a\>\]/i", "", $str); ?>
style="margin-left:px;border-top-color:#e0e0e0">
diff --git a/skin/board/basic/view_comment.skin.php b/skin/board/basic/view_comment.skin.php index 5a512d57d..9b1460fbc 100644 --- a/skin/board/basic/view_comment.skin.php +++ b/skin/board/basic/view_comment.skin.php @@ -20,9 +20,6 @@ var char_max = parseInt(); // 최대 if (strstr($list[$i]['wr_option'], "secret")) $str = $str; $str = preg_replace("/\[\\]/i", "", $str); - // FLASH XSS 공격에 의해 주석 처리 - 110406 - //$str = preg_replace("/\[\\]/i", "", $str); - $str = preg_replace("/\[\]*\>[^\s]*\<\/a\>\]/i", "", $str); ?>
style="margin-left:px;border-top-color:#e0e0e0">
diff --git a/skin/board/gallery/view_comment.skin.php b/skin/board/gallery/view_comment.skin.php index a16dea2f3..c85548b8f 100644 --- a/skin/board/gallery/view_comment.skin.php +++ b/skin/board/gallery/view_comment.skin.php @@ -20,9 +20,6 @@ var char_max = parseInt(); // 최대 if (strstr($list[$i]['wr_option'], "secret")) $str = $str; $str = preg_replace("/\[\\]/i", "", $str); - // FLASH XSS 공격에 의해 주석 처리 - 110406 - //$str = preg_replace("/\[\\]/i", "", $str); - $str = preg_replace("/\[\]*\>[^\s]*\<\/a\>\]/i", "", $str); ?>
style="margin-left:px;border-top-color:#e0e0e0">