From 6dd55f325695996c99abde24a6ebfc02e6dacbbb Mon Sep 17 00:00:00 2001 From: thisgun Date: Wed, 5 Sep 2018 14:53:01 +0900 Subject: [PATCH 1/9] =?UTF-8?q?get=5Funiqid=20=ED=95=A8=EC=88=98=20?= =?UTF-8?q?=EC=98=81=EC=B9=B4=ED=8A=B8=20=ED=95=A8=EC=88=98=20=EB=82=B4?= =?UTF-8?q?=EC=9A=A9=EA=B3=BC=20=EB=8F=99=EC=9D=BC=ED=95=98=EB=8F=84?= =?UTF-8?q?=EB=A1=9D=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/common.lib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/common.lib.php b/lib/common.lib.php index ab261edc3..28a984da4 100644 --- a/lib/common.lib.php +++ b/lib/common.lib.php @@ -2107,7 +2107,7 @@ function get_uniqid() sql_query(" LOCK TABLE {$g5['uniqid_table']} WRITE "); while (1) { // 년월일시분초에 100분의 1초 두자리를 추가함 (1/100 초 앞에 자리가 모자르면 0으로 채움) - $key = date('ymdHis', time()) . str_pad((int)(microtime()*100), 2, "0", STR_PAD_LEFT); + $key = date('YmdHis', time()) . str_pad((int)(microtime()*100), 2, "0", STR_PAD_LEFT); $result = sql_query(" insert into {$g5['uniqid_table']} set uq_id = '$key', uq_ip = '{$_SERVER['REMOTE_ADDR']}' ", false); if ($result) break; // 쿼리가 정상이면 빠진다. From 2b79194f72c2ca28e8197769c2a2212b73b38665 Mon Sep 17 00:00:00 2001 From: thisgun Date: Thu, 6 Sep 2018 10:38:14 +0900 Subject: [PATCH 2/9] =?UTF-8?q?clean=5Fxss=5Fattributes=20=ED=95=A8?= =?UTF-8?q?=EC=88=98=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/common.lib.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/common.lib.php b/lib/common.lib.php index 28a984da4..963701e47 100644 --- a/lib/common.lib.php +++ b/lib/common.lib.php @@ -2878,6 +2878,14 @@ function clean_xss_tags($str) return $str; } +// XSS 어트리뷰트 태그 제거 +function clean_xss_attributes($str) +{ + $str = preg_replace('#(onabort|onactivate|onafterprint|onafterupdate|onbeforeactivate|onbeforecopy|onbeforecut|onbeforedeactivate|onbeforeeditfocus|onbeforepaste|onbeforeprint|onbeforeunload|onbeforeupdate|onblur|onbounce|oncellchange|onchange|onclick|oncontextmenu|oncontrolselect|oncopy|oncut|ondataavaible|ondatasetchanged|ondatasetcomplete|ondblclick|ondeactivate|ondrag|ondragdrop|ondragend|ondragenter|ondragleave|ondragover|ondragstart|ondrop|onerror|onerrorupdate|onfilterupdate|onfinish|onfocus|onfocusin|onfocusout|onhelp|onkeydown|onkeypress|onkeyup|onlayoutcomplete|onload|onlosecapture|onmousedown|onmouseenter|onmouseleave|onmousemove|onmoveout|onmouseover|onmouseup|onmousewheel|onmove|onmoveend|onmovestart|onpaste|onpropertychange|onreadystatechange|onreset|onresize|onresizeend|onresizestart|onrowexit|onrowsdelete|onrowsinserted|onscroll|onselect|onselectionchange|onselectstart|onstart|onstop|onsubmit|onunload)\\s*=\\s*\\\?".*?"#is', '', $str); + + return $str; +} + // unescape nl 얻기 function conv_unescape_nl($str) { From 64f02142b80a9e543af4c24b7c92bd6365f218a7 Mon Sep 17 00:00:00 2001 From: thisgun Date: Thu, 13 Sep 2018 15:19:27 +0900 Subject: [PATCH 3/9] =?UTF-8?q?=EC=B9=B4=EC=B9=B4=EC=98=A4=ED=86=A1=20?= =?UTF-8?q?=EA=B3=B5=EC=9C=A0=EB=A5=BC=20PC=20=EC=97=90=EC=84=9C=20?= =?UTF-8?q?=ED=95=A0=EC=88=98=20=EC=9E=88=EA=B2=8C=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugin/sns/view.sns.skin.php | 9 +++++---- skin/board/basic/style.css | 2 ++ skin/board/gallery/style.css | 2 ++ theme/basic/skin/board/basic/style.css | 2 ++ theme/basic/skin/board/gallery/style.css | 2 ++ 5 files changed, 13 insertions(+), 4 deletions(-) diff --git a/plugin/sns/view.sns.skin.php b/plugin/sns/view.sns.skin.php index dc95a3894..5a45b6392 100644 --- a/plugin/sns/view.sns.skin.php +++ b/plugin/sns/view.sns.skin.php @@ -20,9 +20,10 @@ $sns_send .= '&title='.$sns_msg; $facebook_url = $sns_send.'&sns=facebook'; $twitter_url = $sns_send.'&sns=twitter'; $gplus_url = $sns_send.'&sns=gplus'; +$bo_v_sns_class = $config['cf_kakao_js_apikey'] ? 'show_kakao' : ''; ?> - +