mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-02 01:52:10 +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
|
|
@ -18,7 +18,7 @@
|
||||||
<img widget="login_info" skin="default" />
|
<img widget="login_info" skin="default" />
|
||||||
<!-- /ACCOUNT -->
|
<!-- /ACCOUNT -->
|
||||||
<!-- SEARCH -->
|
<!-- SEARCH -->
|
||||||
<form action="{getUrl()}" method="get" class="search">
|
<form action="{getUrl()}" method="get" class="search" no-error-return-url="true">
|
||||||
<input type="hidden" name="vid" value="{$vid}" />
|
<input type="hidden" name="vid" value="{$vid}" />
|
||||||
<input type="hidden" name="mid" value="{$mid}" />
|
<input type="hidden" name="mid" value="{$mid}" />
|
||||||
<input type="hidden" name="act" value="IS" />
|
<input type="hidden" name="act" value="IS" />
|
||||||
|
|
|
||||||
|
|
@ -71,7 +71,7 @@
|
||||||
<div class="hside layout_pc">
|
<div class="hside layout_pc">
|
||||||
<div class="side">
|
<div class="side">
|
||||||
<!--// Search -->
|
<!--// Search -->
|
||||||
<form action="{getUrl()}" method="get" class="layout_search">
|
<form action="{getUrl()}" method="get" class="layout_search" no-error-return-url="true">
|
||||||
<input type="hidden" name="vid" value="{$vid}" />
|
<input type="hidden" name="vid" value="{$vid}" />
|
||||||
<input type="hidden" name="mid" value="{$mid}" />
|
<input type="hidden" name="mid" value="{$mid}" />
|
||||||
<input type="hidden" name="act" value="IS" />
|
<input type="hidden" name="act" value="IS" />
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,7 @@ body{background:url({$layout_info->background_image}) repeat-x left top;}
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
<form action="{getUrl()}" method="post" class="iSearch">
|
<form action="{getUrl()}" method="get" class="iSearch" no-error-return-url="true">
|
||||||
<input type="hidden" name="vid" value="{$vid}" cond="$vid" />
|
<input type="hidden" name="vid" value="{$vid}" cond="$vid" />
|
||||||
<input type="hidden" name="mid" value="{$mid}" />
|
<input type="hidden" name="mid" value="{$mid}" />
|
||||||
<input type="hidden" name="act" value="IS" />
|
<input type="hidden" name="act" value="IS" />
|
||||||
|
|
|
||||||
|
|
@ -38,6 +38,16 @@ class integration_searchView extends integration_search
|
||||||
$oModuleModel = getModel('module');
|
$oModuleModel = getModel('module');
|
||||||
$logged_info = Context::get('logged_info');
|
$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
|
// Check permissions
|
||||||
if(!$this->grant->access) return new Object(-1,'msg_not_permitted');
|
if(!$this->grant->access) return new Object(-1,'msg_not_permitted');
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue