사이트 시작 모듈에 mid 붙이고 접근할 경우 디렉션

This commit is contained in:
conory 2016-03-26 23:37:20 +09:00
parent d328efcbc0
commit 4f6e8b06b8

View file

@ -256,7 +256,15 @@ class ModuleHandler extends Handler
header("Location: $redirect_url", true, 301);
return false;
}
// redirect, if site start module
if(isset($_GET['mid']) && $_GET['mid'] === $site_module_info->mid && !$this->act && !$this->module && !$this->document_srl)
{
Context::setCacheControl(0);
header('location: ' . getNotEncodedSiteUrl($site_module_info->domain), true, 301);
return false;
}
// If module info was set, retrieve variables from the module information
if($module_info)
{