From 26249571833302dae68852f60f994ca266bb5b88 Mon Sep 17 00:00:00 2001 From: MinSoo Kim Date: Mon, 19 Jan 2015 19:01:31 +0900 Subject: [PATCH] =?UTF-8?q?if=20=EB=AC=B8=20=EC=A0=84=EC=97=90=20referer?= =?UTF-8?q?=20=EC=B4=88=EA=B8=B0=ED=99=94?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/func.inc.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/config/func.inc.php b/config/func.inc.php index 54bfff981..bf0bdde68 100644 --- a/config/func.inc.php +++ b/config/func.inc.php @@ -1517,6 +1517,7 @@ function checkCSRF() } $defaultUrl = Context::getDefaultUrl(); + $referer = parse_url($_SERVER["HTTP_REFERER"]); if(strpos(Context::getRequestUri(), 'xn--') !== FALSE) { @@ -1524,10 +1525,6 @@ function checkCSRF() $IDN = new idna_convert(array('idn_version' => 2008)); $referer = parse_url($IDN->encode($_SERVER["HTTP_REFERER"])); } - else - { - $referer = parse_url($_SERVER["HTTP_REFERER"]); - } $oModuleModel = getModel('module'); $siteModuleInfo = $oModuleModel->getDefaultMid();