Skip to content

Commit

Permalink
CSRF fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kestasjk committed Jul 23, 2021
1 parent 721dfab commit 1be618b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions contactUsDirect.php
Expand Up @@ -58,6 +58,8 @@ class GameResultData
// Get values from posted contact requests.
if(isset($_POST['submit']))
{
libAuth::formToken_Valid();

$submitted = true;
if (isset($_POST['issueType']))
{
Expand Down Expand Up @@ -393,6 +395,7 @@ class GameResultData
print '<div class = "contactUsShow">';

print '<form action="#" method="post">';
print libAuth::formTokenHTML();
print '<p><strong>What do you need to contact us about?</strong></p>
Issue with game(s) <input type="radio" value="gameIssue" onclick="javascript:gameIssueCheck();" name="issueType" id="gameIssue" required>
</br>Other issue <input type="radio" value="otherIssue" onclick="javascript:gameIssueCheck();" name="issueType" id="otherIssue">';
Expand Down

0 comments on commit 1be618b

Please sign in to comment.