SQL Injection 취약점 수정

This commit is contained in:
chicpro committed 2014-12-05 17:13:10 +09:00
1 parent b608efa5da
commit fe35a8c782
2 files changed
+2

No files matched your search

+1
View File
@@ -55,6 +55,7 @@ if(is_file($skin_file)) {
$faq_list = array();
$stx = trim($stx);
$sql_search = '';
if($stx) {
$sql_search = " and ( INSTR(fa_subject, '$stx') > 0 or INSTR(fa_content, '$stx') > 0 ) ";
+1
View File
@@ -149,6 +149,7 @@ if (!$sst) {
$sst = preg_match("/^(wr_datetime|wr_hit|wr_good|wr_nogood)$/i", $sst) ? $sst : "";
}
$sql_order = '';
if ($sst) {
$sql_order = " order by {$sst} {$sod} ";
}