Skip to content

Commit

Permalink
fixed captcha check if the captcha setting is disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
oRRs committed Sep 27, 2015
1 parent 57bbd03 commit f5eb069
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion translation.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
}

// Check captcha
if (!confirm_captcha_response($recaptcha_secret_key, $_POST["g-recaptcha-response"])) {
if ($requirecaptcha && !confirm_captcha_response($recaptcha_secret_key, $_POST["g-recaptcha-response"])) {
die('Error validating the security response. You can use the back button of the browser to recover your translations.');
}

Expand Down

0 comments on commit f5eb069

Please sign in to comment.