SQLInjection 대응을 위해 파일 상단부에 $_POST, $_GET의 원하는 변수 타입명 지정

This commit is contained in:
2018-04-14 01:32:13 +09:00
parent 14578fa828
commit 37f56f05b6
51 changed files with 374 additions and 26 deletions
+10 -3
View File
@@ -1,6 +1,16 @@
<?
include "lib.php";
include "func.php";
$btn = Util::getReq('btn');
$gen = Util::getReq('gen', 'int', 0);
$type = Util::getReq('type', 'int', 0);
if($type < 0 || $type > 3){
$type = 0;
}
//로그인 검사
CheckLogin();
$connect = dbConn();
@@ -32,9 +42,6 @@ if($btn == '정렬하기') {
$gen = 0;
}
if($type == 0) {
$type = 0;
}
$sel[$type] = "selected";
?>
<html>