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
+11 -6
View File
@@ -1,6 +1,17 @@
<?
include "lib.php";
include "func.php";
$type = Util::getReq('type', 'int', 0);
$type2 = Util::getReq('type2', 'int', 0);
if($type < 0 || $type > 17){
$type = 0;
}
if($type2 < 0 || $type2 > 6){
$type2 = 0;
}
//로그인 검사
CheckLogin();
$connect = dbConn();
@@ -28,12 +39,6 @@ if($me[userlevel] < 5) {
exit();
}
if($type == 0) {
$type = 0;
}
if($type2 == 0) {
$type2 = 0;
}
$sel[$type] = "selected";
$sel2[$type2] = "selected";