From 84e4f6fee8df19d16c0caa9abe7c7f98e755cd34 Mon Sep 17 00:00:00 2001 From: chicpro Date: Thu, 31 Jul 2014 16:13:26 +0900 Subject: [PATCH] =?UTF-8?q?post=EB=A1=9C=20=EC=84=A0=EC=96=B8=EB=90=9C=20?= =?UTF-8?q?=EC=A0=84=EC=97=AD=20=EB=B3=80=EC=88=98=20unset=20=EC=BD=94?= =?UTF-8?q?=EB=93=9C=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/common.php b/common.php index 6c70a87d5..66eef1ed5 100644 --- a/common.php +++ b/common.php @@ -20,8 +20,9 @@ $ext_arr = array ('PHP_SELF', '_ENV', '_GET', '_POST', '_FILES', '_SERVER', '_CO 'HTTP_COOKIE_VARS', 'HTTP_SESSION_VARS', 'GLOBALS'); $ext_cnt = count($ext_arr); for ($i=0; $i<$ext_cnt; $i++) { - // GET 으로 선언된 전역변수가 있다면 unset() 시킴 - if (isset($_GET[$ext_arr[$i]])) unset($_GET[$ext_arr[$i]]); + // POST, GET 으로 선언된 전역변수가 있다면 unset() 시킴 + if (isset($_GET[$ext_arr[$i]])) unset($_GET[$ext_arr[$i]]); + if (isset($_POST[$ext_arr[$i]])) unset($_POST[$ext_arr[$i]]); } //==========================================================================================================================