Skip to content
This repository has been archived by the owner on Jun 24, 2021. It is now read-only.

Commit

Permalink
sca 필터링 코드 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
chicpro committed Jan 13, 2016
1 parent 7fa9218 commit 079a2c1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion common.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 = '';
}
Expand Down

0 comments on commit 079a2c1

Please sign in to comment.