diff options
| author | cassio <cassiopc@gmail.com> | 2015-08-10 04:47:50 +0000 |
|---|---|---|
| committer | cassio <cassiopc@gmail.com> | 2015-08-10 04:47:50 +0000 |
| commit | 0c84724c228874c524ba9ca5a00b6ec91c8e2c3f (patch) | |
| tree | a108c346a46e329979fb156d902449ba37d2f532 /src/team/run.php | |
| parent | e9a96f5453e5675bfcc74c3c977720064575c423 (diff) | |
| download | boca-0c84724c228874c524ba9ca5a00b6ec91c8e2c3f.tar.gz boca-0c84724c228874c524ba9ca5a00b6ec91c8e2c3f.zip | |
fixes
Diffstat (limited to 'src/team/run.php')
| -rw-r--r-- | src/team/run.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/team/run.php b/src/team/run.php index 13cf2fd..db142f4 100644 --- a/src/team/run.php +++ b/src/team/run.php @@ -83,7 +83,8 @@ if (isset($_FILES["sourcefile"]) && isset($_POST["problem"]) && isset($_POST["Su if(isset($_POST["pasthash"]) && isset($_POST["pastval"])) { $pasthash = myhtmlspecialchars($_POST["pasthash"]); $pastval = myhtmlspecialchars($_POST["pastval"]); - $pastsubmission = myhash(@file_get_contents($_SESSION["locr"] . $ds . "private" . $ds . 'run-past.config') . $pastcode); + $pastabs = myhtmlspecialchars($_POST["pastabs"]); + $pastsubmission = myhash(@file_get_contents($_SESSION["locr"] . $ds . "private" . $ds . 'run-past.config') . $pastcode . $pastabs); if($pastsubmission != $pasthash) { echo "\nRESULT: INVALID SUBMISSION CODE"; exit; |