diff --git a/src/PHPMailer b/src/PHPMailer
index 7c8b786..1d85f9e 160000
--- a/src/PHPMailer
+++ b/src/PHPMailer
@@ -1 +1 @@
-Subproject commit 7c8b786228bb9e1561ff60a2d6f7f6ce91be6fee
+Subproject commit 1d85f9ef3ecfc42bbc4f3c70d5e37ca9a65f629a
diff --git a/src/arenas/Battleship/act.php b/src/arenas/Battleship/act.php
index 8febf92..87c1eaf 100644
--- a/src/arenas/Battleship/act.php
+++ b/src/arenas/Battleship/act.php
@@ -56,9 +56,9 @@ switch ($_POST['act']){
die;
}
if($_POST['fullLogs'] == 'true'){
- $fullLogs = true;
+ $wantFullLogs = true;
}else{
- $fullLogs = false;
+ $wantFullLogs = false;
}
//check if bots exists
@@ -127,7 +127,7 @@ switch ($_POST['act']){
);
$anwserPlayerJson=get_IA_Response($currentBot['url'],$botParamsToSend);
- if($fullLogs){
+ if($wantFullLogs){
$fullLogs='Arena send to '.$currentBot['name'].''.htmlentities($anwserPlayerJson['messageSend']).'
HTTP status: '.htmlentities($anwserPlayerJson['httpStatus']).'
Bot anwser: '.htmlentities($anwserPlayerJson['response']).'
';
@@ -241,12 +241,16 @@ switch ($_POST['act']){
break;
case "fight":
+ if(($_POST['fullLogs'] <> 'true') && ($_POST['fullLogs'] <> 'false')){
+ error(500, 'wrong POST parameters');
+ die;
+ }
if($_POST['fullLogs'] == 'true'){
- $WantFullLogs = true;
+ $wantFullLogs = true;
}else{
- $WantFullLogs = false;
+ $wantFullLogs = false;
}
-
+
if(!isset($fullLogs)){
$fullLogs = "";
}