From 9c44d234ed44b84ed8ab0e8d3f9e1dc2dd1a2e24 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=B4=9D?= Date: Wed, 5 Jun 2024 16:18:50 +0900 Subject: [PATCH 1/2] Create SECURITY.md --- SECURITY.md | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 SECURITY.md diff --git a/SECURITY.md b/SECURITY.md new file mode 100644 index 000000000..b720b9b3d --- /dev/null +++ b/SECURITY.md @@ -0,0 +1,3 @@ +# Gnuboard5 Security Policy + +Please ask [https://sir.kr/security/.](https://sir.kr/co_qa) From ca30e27b27b527cccdfa957c3a0a709d0f6bef22 Mon Sep 17 00:00:00 2001 From: zipuragi Date: Fri, 7 Jun 2024 12:25:31 +0900 Subject: [PATCH 2/2] =?UTF-8?q?=EA=B2=8C=EC=8B=9C=ED=8C=90=EC=97=90?= =?UTF-8?q?=EC=84=9C=20=ED=9A=8C=EC=9B=90=20=EC=95=84=EC=9D=B4=EB=94=94?= =?UTF-8?q?=EB=A1=9C=20=EB=8C=93=EA=B8=80=20=EA=B2=80=EC=83=89=EC=8B=9C=20?= =?UTF-8?q?=EC=9E=98=EB=AA=BB=EB=90=9C=20=EA=B2=B0=EA=B3=BC=EA=B0=80=20?= =?UTF-8?q?=EB=82=98=EC=98=A4=EB=8A=94=20=EB=AC=B8=EC=A0=9C=20(#322)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/common.lib.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/common.lib.php b/lib/common.lib.php index 059f775ca..9ca46d4e4 100644 --- a/lib/common.lib.php +++ b/lib/common.lib.php @@ -712,7 +712,7 @@ function get_sql_search($search_ca_name, $search_field, $search_text, $search_op $tmp = explode(",", trim($search_field)); $field = explode("||", $tmp[0]); $not_comment = ""; - if (!empty($tmp[1])) + if (isset($tmp[1])) $not_comment = $tmp[1]; $str .= "("; @@ -768,8 +768,11 @@ function get_sql_search($search_ca_name, $search_field, $search_text, $search_op $op1 = " $search_operator "; } $str .= " ) "; - if ($not_comment) + if ($not_comment === '1') { $str .= " and wr_is_comment = '0' "; + } else if ($not_comment === '0') { + $str .= " and wr_is_comment = '1' "; + } return $str; }