Skip to content

Commit

Permalink
필터링 특수문자 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
chicpro committed Apr 20, 2016
1 parent 6e05353 commit 52db203
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions common.php
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ function sql_escape_string($str)
if (isset($_REQUEST['sca'])) {
$sca = clean_xss_tags(trim($_REQUEST['sca']));
if ($sca) {
$sca = preg_replace("/[\<\>\'\"\\\'\\\"\%\=\(\)]/", "", $sca);
$sca = preg_replace("/[\<\>\'\"\\\'\\\"\%\=\(\)\/\^\*]/", "", $sca);
$qstr .= '&amp;sca=' . urlencode($sca);
}
} else {
Expand All @@ -237,7 +237,7 @@ function sql_escape_string($str)

if (isset($_REQUEST['sfl'])) {
$sfl = trim($_REQUEST['sfl']);
$sfl = preg_replace("/[\<\>\'\"\\\'\\\"\%\=\(\)\s]/", "", $sfl);
$sfl = preg_replace("/[\<\>\'\"\\\'\\\"\%\=\(\)\/\^\*\s]/", "", $sfl);
if ($sfl)
$qstr .= '&amp;sfl=' . urlencode($sfl); // search field (검색 필드)
} else {
Expand Down

0 comments on commit 52db203

Please sign in to comment.