Permalink
Browse files

sca 필터링 코드 추가

  • Loading branch information...
chicpro
chicpro committed Jan 12, 2016
1 parent bd3fd20 commit f5f4925d4eb28ba1af728e1065fc2bdd9ce1da58
Showing with 3 additions and 1 deletion.
  1. +3 −1 common.php
View
@@ -227,8 +227,10 @@ function sql_escape_string($str)
if (isset($_REQUEST['sca'])) {
$sca = clean_xss_tags(trim($_REQUEST['sca']));
if ($sca)
if ($sca) {
$sca = preg_replace("/[\<\>\'\"\\\'\\\"\%\=\(\)\s]/", "", $sca);
$qstr .= '&amp;sca=' . urlencode($sca);
}
} else {
$sca = '';
}

0 comments on commit f5f4925

Please sign in to comment.