SQL Injection 대응을 위해 파일 상단에 Util::getReq 사용

This commit is contained in:
2018-04-14 00:15:25 +09:00
parent be7154284e
commit 253a953dfe
21 changed files with 225 additions and 113 deletions
+4 -1
View File
@@ -3,6 +3,9 @@ namespace sammo;
include "lib.php";
include "func.php";
$type = Util::getReq('type', 'int', 10);
//로그인 검사
$session = Session::requireGameLogin()->setReadOnly();
$userID = Session::getUserID();
@@ -21,7 +24,7 @@ if ($me['level'] == 0) {
exit();
}
if ($type == 0) {
if ($type <= 0 || $type > 12) {
$type = 10;
}
$sel = [$type => "selected"];