mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-11 21:12:15 +09:00
통합검색 모듈에서 검색어가 이중으로 escape 되는 문제 수정
This commit is contained in:
parent
86798f7076
commit
51541dde7d
1 changed files with 4 additions and 3 deletions
|
|
@ -23,7 +23,7 @@ class integration_searchView extends integration_search
|
||||||
*
|
*
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
function init()
|
public function init()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -32,7 +32,7 @@ class integration_searchView extends integration_search
|
||||||
*
|
*
|
||||||
* @return Object
|
* @return Object
|
||||||
*/
|
*/
|
||||||
function IS()
|
public function IS()
|
||||||
{
|
{
|
||||||
$oFile = getClass('file');
|
$oFile = getClass('file');
|
||||||
$oModuleModel = getModel('module');
|
$oModuleModel = getModel('module');
|
||||||
|
|
@ -114,7 +114,8 @@ class integration_searchView extends integration_search
|
||||||
|
|
||||||
// Set a variable for search keyword
|
// Set a variable for search keyword
|
||||||
$is_keyword = Context::get('is_keyword');
|
$is_keyword = Context::get('is_keyword');
|
||||||
$is_keyword = escape(trim(utf8_normalize_spaces($is_keyword)));
|
// As the variables from GET or POST will be escaped by setRequestArguments method at Context class, the double_escape variable should be "FALSE", and also the escape function might be useful when this method was called from the other way (for not escaped keyword).
|
||||||
|
$is_keyword = escape(trim(utf8_normalize_spaces($is_keyword)), false);
|
||||||
if (mb_strlen($is_keyword, 'UTF-8') > 40)
|
if (mb_strlen($is_keyword, 'UTF-8') > 40)
|
||||||
{
|
{
|
||||||
$is_keyword = mb_substr($is_keyword, 0, 40);
|
$is_keyword = mb_substr($is_keyword, 0, 40);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue