From 54e5c1b8384f1fb16f779d808f3d8ad54040e014 Mon Sep 17 00:00:00 2001 From: thisgun Date: Tue, 24 Nov 2020 11:03:17 +0900 Subject: [PATCH] =?UTF-8?q?get=5Fmagic=5Fquotes=5Fgpc=ED=95=A8=EC=88=98=20?= =?UTF-8?q?DEPRECATED=20=EC=97=90=20=EB=8C=80=ED=95=9C=20=EC=BD=94?= =?UTF-8?q?=EB=93=9C=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common.php b/common.php index fc22fb036..5ea293e09 100644 --- a/common.php +++ b/common.php @@ -98,7 +98,7 @@ function sql_escape_string($str) // SQL Injection 등으로 부터 보호를 위해 sql_escape_string() 적용 //------------------------------------------------------------------------------ // magic_quotes_gpc 에 의한 backslashes 제거 -if (get_magic_quotes_gpc()) { +if (function_exists('get_magic_quotes_gpc') && get_magic_quotes_gpc()) { $_POST = array_map_deep('stripslashes', $_POST); $_GET = array_map_deep('stripslashes', $_GET); $_COOKIE = array_map_deep('stripslashes', $_COOKIE);