diff --git a/hwe/preprocessing.php b/hwe/preprocessing.php index 84e00242..f5505d8c 100644 --- a/hwe/preprocessing.php +++ b/hwe/preprocessing.php @@ -14,11 +14,9 @@ $turn = Util::getReq('turn', 'array_int'); $sel = Util::getReq('sel', 'int'); $commandtype = Util::getReq('commandtype', 'int'); -extractMissingPostToGlobals(); - increaseRefresh("턴입력", 1); -if(!$turn || $commandtype === null){ +if(!$turn || $commandtype === null || $sel === null){ header('location:commandlist.php'); die(); } diff --git a/hwe/processing.php b/hwe/processing.php index 21492067..45e9ab14 100644 --- a/hwe/processing.php +++ b/hwe/processing.php @@ -5,10 +5,13 @@ include "lib.php"; include "func.php"; //로그인 검사 -$commandtype = Util::getReq('commandtype', 'int', 0); -$turn = Util::getReq('turn', 'array_int', [0]); +$commandtype = Util::getReq('commandtype', 'int'); +$turn = Util::getReq('turn', 'array_int'); -extractMissingPostToGlobals(); +if(!$turn || $commandtype === null){ + header('location:commandlist.php'); + die(); +} $session = Session::requireGameLogin()->setReadOnly();