mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 01:01:41 +09:00
Redirect to GET if integration search is called with POST
This commit is contained in:
parent
d17eaf63a0
commit
c91feddbf0
4 changed files with 13 additions and 3 deletions
|
|
@ -38,6 +38,16 @@ class integration_searchView extends integration_search
|
|||
$oModuleModel = getModel('module');
|
||||
$logged_info = Context::get('logged_info');
|
||||
|
||||
// Redirect to GET if search is requested via POST
|
||||
if($_SERVER['REQUEST_METHOD'] !== 'GET')
|
||||
{
|
||||
$redirect_url = getNotEncodedUrl('', 'mid', Context::get('mid'), 'act', 'IS',
|
||||
'search_target', Context::get('search_target'), 'is_keyword', Context::get('is_keyword'),
|
||||
'where', Context::get('where'), 'page', Context::get('page'));
|
||||
$this->setRedirectUrl($redirect_url);
|
||||
return;
|
||||
}
|
||||
|
||||
// Check permissions
|
||||
if(!$this->grant->access) return new Object(-1,'msg_not_permitted');
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue