mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-09 03:32:00 +09:00
Don't redirect from site start module unless request method is GET
This commit is contained in:
parent
f4535fbc84
commit
69ea93914a
1 changed files with 1 additions and 1 deletions
|
|
@ -272,7 +272,7 @@ class ModuleHandler extends Handler
|
|||
}
|
||||
|
||||
// redirect, if site start module
|
||||
if(isset($_GET['mid']) && $_GET['mid'] === $site_module_info->mid && count($_GET) === 1)
|
||||
if(Context::getRequestMethod() === 'GET' && isset($_GET['mid']) && $_GET['mid'] === $site_module_info->mid && count($_GET) === 1)
|
||||
{
|
||||
Context::setCacheControl(0);
|
||||
header('location: ' . getNotEncodedSiteUrl($site_module_info->domain), true, 301);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue