From b477c2e720d51656b4bcc0d52161674712d8690a Mon Sep 17 00:00:00 2001 From: chicpro Date: Mon, 9 Feb 2015 09:57:32 +0900 Subject: [PATCH] =?UTF-8?q?XSS=20=EC=B7=A8=EC=95=BD=EC=A0=90=20=ED=8C=A8?= =?UTF-8?q?=EC=B9=98=20=EB=B0=8F=205.0.30=EB=B2=84=EC=A0=84=20=EC=88=98?= =?UTF-8?q?=EC=A0=95=EB=82=B4=EC=97=AD=20=EC=A0=81=EC=9A=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bbs/list.php | 6 ++++++ bbs/move.php | 2 ++ bbs/move_update.php | 5 +++-- bbs/visit_insert.inc.php | 2 +- head.php | 2 +- index.php | 2 +- mobile/skin/board/basic/list.skin.php | 4 +++- mobile/skin/board/gallery/list.skin.php | 4 +++- skin/board/basic/list.skin.php | 4 +++- skin/board/gallery/list.skin.php | 4 +++- tail.php | 2 +- 11 files changed, 27 insertions(+), 10 deletions(-) diff --git a/bbs/list.php b/bbs/list.php index f964d33ed..b756bb03c 100644 --- a/bbs/list.php +++ b/bbs/list.php @@ -46,9 +46,15 @@ if ($sca || $stx) { $sql_search .= " and (wr_num between {$spt} and ({$spt} + {$config['cf_search_part']})) "; // 원글만 얻는다. (코멘트의 내용도 검색하기 위함) + // 라엘님 제안 코드로 대체 http://sir.co.kr/bbs/board.php?bo_table=g5_bug&wr_id=2922 + $sql = " SELECT COUNT(DISTINCT `wr_parent`) AS `cnt` FROM {$write_table} WHERE {$sql_search} "; + $row = sql_fetch($sql); + $total_count = $row['cnt']; + /* $sql = " select distinct wr_parent from {$write_table} where {$sql_search} "; $result = sql_query($sql); $total_count = mysql_num_rows($result); + */ } else { $sql_search = ""; diff --git a/bbs/move.php b/bbs/move.php index 8756ced7b..e3a7d86f2 100644 --- a/bbs/move.php +++ b/bbs/move.php @@ -51,6 +51,8 @@ for ($i=0; $row=sql_fetch_array($result); $i++) + + diff --git a/bbs/move_update.php b/bbs/move_update.php index 41b7fd4a3..bfaf54bcf 100644 --- a/bbs/move_update.php +++ b/bbs/move_update.php @@ -196,13 +196,14 @@ if ($sw == 'move') } $msg = '해당 게시물을 선택한 게시판으로 '.$act.' 하였습니다.'; -$opener_href = './board.php?bo_table='.$bo_table.'&page='.$page.'&'.$qstr; +$opener_href = './board.php?bo_table='.$bo_table.'&page='.$page.'&'.$qstr; +$opener_href1 = str_replace('&', '&', $opener_href); echo <<