Skip to content

Commit

Permalink
Merge branch '406-bad-answer-alert' into 397-lhi-contract
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiasnteireho committed Sep 18, 2024
2 parents 2c808d0 + d7d31de commit 0ee7fac
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions bad-answer-alert.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,16 +28,17 @@ function checkRequest($keys, $user_agent){
die();
}

$interviewtitle= ($_REQUEST["interviewtitle"]);
$viewerversion= ($_REQUEST["viewerversion"]);
$variables = ($_REQUEST["type"]);
$authoremail = ($_REQUEST["authoremail"]);
$interviewtitle= ($_REQUEST["guideTitle"]);
$viewerversion= ($_REQUEST["guideTitle"]);
$variables = ($_REQUEST["invalidAnswers"]);
$authorid = ($_REQUEST["authorid"]);
$created=$now=date("Y-m-d-H-i-s");


$message="
An A2J user has submitted an answerset with invalid dates or numbers:
<ul>
<li>Bad vars: </li> " . $variables . "
<li>Interview Title: " . htmlentities(stripslashes($interviewtitle)) . "
<li>Interview URL: " . htmlentities(stripslashes($interviewid)). "
<li>Viewer Version: $viewerversion
Expand Down

0 comments on commit 0ee7fac

Please sign in to comment.