From b5711367898e2fc51abb1cccd77fbbf8a7ba7f31 Mon Sep 17 00:00:00 2001 From: arf20 Date: Wed, 1 Jul 2026 20:21:58 +0200 Subject: Fix captcha --- mlmmj.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'mlmmj.php') diff --git a/mlmmj.php b/mlmmj.php index 70d6488..e6093be 100644 --- a/mlmmj.php +++ b/mlmmj.php @@ -56,7 +56,7 @@ class mlmmj !isset($_POST["job"]) && !isset($_POST["redirect_success"]) && !isset($_POST["redirect_failure"]) && - !isset($_POST["random"])) && + !isset($_POST["random"]) && !isset($_POST["captcha"])) { $this->errors = TRUE; @@ -75,7 +75,7 @@ class mlmmj // Check the random string to be valid and return an error message // otherwise. - if (!$captchas->validate ($random_string)) + if (!$captchas->validate ($_POST["random"])) { $this->error( "The session key (random) does not exist, please go back and reload form.
" @@ -85,7 +85,7 @@ class mlmmj } // Check, that the right CAPTCHA password has been entered and // return an error message otherwise. - elseif (!$captchas->verify ($password)) + elseif (!$captchas->verify ($_POST["captcha"])) { $this->error("You entered the wrong password. Aren't you human? Please use back button and reload."; } -- cgit v1.2.3