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
+2 -2
View File
@@ -6,8 +6,8 @@ $id = $_POST[id];
$pw = $_POST[pw];
$name = $_POST[name];
$name = _String::NoSpecialCharacter($name);
$pic = $_POST[pic];
$character = $_POST[character];
$pic = (int)$_POST[pic];
$character = (int)$_POST[character];
$leader = floor($_POST['leader']);
$power = floor($_POST['power']);