검색에 사용되는 변수에서 특수문자 제거 및 길이제한 추가
This commit is contained in:
@ -225,13 +225,14 @@ if (isset($_REQUEST['sfl'])) {
|
|||||||
if (isset($_REQUEST['stx'])) { // search text (검색어)
|
if (isset($_REQUEST['stx'])) { // search text (검색어)
|
||||||
$stx = trim($_REQUEST['stx']);
|
$stx = trim($_REQUEST['stx']);
|
||||||
if ($stx)
|
if ($stx)
|
||||||
$qstr .= '&stx=' . urlencode($stx);
|
$qstr .= '&stx=' . urlencode(cut_str($stx, 20, ''));
|
||||||
} else {
|
} else {
|
||||||
$stx = '';
|
$stx = '';
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isset($_REQUEST['sst'])) {
|
if (isset($_REQUEST['sst'])) {
|
||||||
$sst = trim($_REQUEST['sst']);
|
$sst = trim($_REQUEST['sst']);
|
||||||
|
$sst = preg_replace("/[\<\>\'\"\%\=\(\)\s]/", "", $sst);
|
||||||
if ($sst)
|
if ($sst)
|
||||||
$qstr .= '&sst=' . urlencode($sst); // search sort (검색 정렬 필드)
|
$qstr .= '&sst=' . urlencode($sst); // search sort (검색 정렬 필드)
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user