mirror of
https://github.com/fsr/eseeva
synced 2024-11-15 00:43:12 +01:00
fixes session handling error
Now the submissionId check gets evaluated even lazier.
This commit is contained in:
parent
7496fc263e
commit
56d882ca56
|
@ -42,7 +42,7 @@
|
|||
// if the variable is set, the form has been posted to itself
|
||||
// if the submission ids of the post and the form don't match, the
|
||||
// user has refreshed the site and thus its reseted to the default state
|
||||
if (isset($_POST["submit"]) && isset($_SESSION["submissionId"]) && $_SESSION["submissionId"] == $_POST["submissionId"])
|
||||
if (isset($_POST["submit"]) && isset($_SESSION["submissionId"]) && ($_SESSION["submissionId"] == $_POST["submissionId"]))
|
||||
{
|
||||
// check if the access code was correct
|
||||
/*if ($_POST["accessCode"] != ACCESS_CODE)
|
||||
|
@ -95,7 +95,7 @@
|
|||
<?php
|
||||
CreateHeadline("Key Control Panel");
|
||||
CreateInfoBox($formState);
|
||||
CreateAccessBox($formState);
|
||||
//CreateAccessBox($formState);
|
||||
|
||||
switch ($formState)
|
||||
{
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
// if the submission ids of the post and the form don't match, the
|
||||
// user has refreshed the site and thus its reseted to the default state
|
||||
|
||||
if (isset($_SESSION["submissionId"]) && $_SESSION["submissionId"] == $_POST["submissionId"])
|
||||
if (isset($_SESSION["submissionId"]) && ($_SESSION["submissionId"] == $_POST["submissionId"]))
|
||||
{
|
||||
if (isset($_POST["changesConfirm"]))
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue