mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-05 11:32:12 +09:00
#211 post 요청일 경우 redirect 배제
This commit is contained in:
parent
0eab5285b0
commit
e705c3b17c
1 changed files with 14 additions and 5 deletions
|
|
@ -155,13 +155,22 @@ class ModuleHandler extends Handler
|
|||
{
|
||||
// If it exists, compare mid based on the module information
|
||||
// if mids are not matching, set it as the document's mid
|
||||
if(!$this->mid || ($this->mid && $this->mid != $module_info->mid))
|
||||
if(!$this->mid || ($this->mid != $module_info->mid))
|
||||
{
|
||||
$this->mid = $module_info->mid;
|
||||
header('location:' . getNotEncodedSiteUrl($site_info->domain, 'mid', $this->mid, 'document_srl', $this->document_srl));
|
||||
return FALSE;
|
||||
|
||||
if(Context::getRequestMethod() == 'GET')
|
||||
{
|
||||
$this->mid = $module_info->mid;
|
||||
header('location:' . getNotEncodedSiteUrl($site_info->domain, 'mid', $this->mid, 'document_srl', $this->document_srl));
|
||||
return FALSE;
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->mid = $module_info->mid;
|
||||
Context::set('mid', $this->mid);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
// if requested module is different from one of the document, remove the module information retrieved based on the document number
|
||||
if($this->module && $module_info->module != $this->module)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue