Skip to content
Permalink
Browse files

sca 필터링 코드 추가

  • Loading branch information...
chicpro
chicpro committed Jan 13, 2016
1 parent 7fa9218 commit 079a2c1ff638c883b5fd40e7a7362d13d5603d08
Showing with 3 additions and 1 deletion.
  1. +3 −1 common.php
@@ -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 079a2c1

Please sign in to comment.
You can’t perform that action at this time.