fix: all location headers need to have exit after them!

This commit is contained in:
Martin Ambrus
2017-10-22 13:00:54 +02:00
parent 43a2775ebc
commit 7270a69a63
74 changed files with 367 additions and 78 deletions
+3 -1
View File
@@ -12,6 +12,7 @@ include("GameEngine/Village.php");
if(isset($_GET['newdid'])){
$_SESSION['wid'] = $_GET['newdid'];
header("Location: ".$_SERVER['PHP_SELF']);
exit;
}
if($village->resarray['f'.$_GET['id'].'t'] == 24 and $village->currentcel == 0){
if(!empty($_GET['type']) && $_GET['type'] == 1){
@@ -37,4 +38,5 @@ if($village->resarray['f'.$_GET['id'].'t'] == 24 and $village->currentcel == 0){
}
}
}
header("Location: build.php?id=".$_GET['id']);
header("Location: build.php?id=".$_GET['id']);
exit;