From 63822016d5017e5264635df9a48434afb91a33e7 Mon Sep 17 00:00:00 2001 From: thisgun Date: Wed, 17 Jun 2020 19:56:18 +0900 Subject: [PATCH] =?UTF-8?q?get=5Fmember=20=ED=95=A8=EC=88=98=20=EC=9C=A0?= =?UTF-8?q?=ED=9A=A8=EC=84=B1=20=EA=B2=80=EC=82=AC=20=EC=BD=94=EB=93=9C=20?= =?UTF-8?q?=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 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/common.lib.php b/lib/common.lib.php index da968e569..51185f61e 100644 --- a/lib/common.lib.php +++ b/lib/common.lib.php @@ -773,7 +773,8 @@ function get_member($mb_id, $fields='*', $is_cache=false) { global $g5; - $mb_id = preg_replace("/[^0-9a-z_]+/i", "", $mb_id); + if (preg_match("/[^0-9a-z_]+/i", $mb_id)) + return array(); static $cache = array();