mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-02 01:52:10 +09:00
if 문 전에 referer 초기화
This commit is contained in:
parent
d2b05732ab
commit
2624957183
1 changed files with 1 additions and 4 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue