Skip to content

Commit

Permalink
Added token to game create form .. a lot more otw
Browse files Browse the repository at this point in the history
  • Loading branch information
kestasjk committed Jul 23, 2021
1 parent 5b67108 commit 80d2d46
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions gamecreate.php
Expand Up @@ -42,6 +42,8 @@
{
try
{
libAuth::formToken_Valid();

$form = $_REQUEST['newGame']; // This makes $form look harmless when it is unsanitized; the parameters must all be sanitized

$input = array();
Expand Down
3 changes: 3 additions & 0 deletions locales/English/gamecreate.php
Expand Up @@ -341,6 +341,9 @@
<input class = "green-Submit" type="submit" value="Create">
</p>
</br>
<?php
print libAuth::formTokenHTML();
?>
</form>
</div>

Expand Down

0 comments on commit 80d2d46

Please sign in to comment.