Permalink
Browse files

필터링 특수문자 추가

  • Loading branch information...
1 parent 6e05353 commit 52db203ecd9feb8964e28f890a1f0c6608efa543 chicpro committed Apr 5, 2016
Showing with 2 additions and 2 deletions.
  1. +2 −2 common.php
View
@@ -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 {
@@ -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 {

0 comments on commit 52db203

Please sign in to comment.