Merge branch 'ticket/r15109-math-captcha' into develop
This commit is contained in:
commit
bd8981af81
@ -63,7 +63,7 @@ if (Tools::isSubmit('submitMessage')) {
|
||||
$errors[] = Tools::displayError('Invalid');
|
||||
}
|
||||
elseif ($mathCaptcha->check($captcha_ans) !== true) {
|
||||
$errors[] = Tools::displayError('Invalid');
|
||||
$errors[] = Tools::displayError('For security reasons, thank you to solve the addition to validate the sending of your message');
|
||||
}
|
||||
elseif (preg_match("/\p{Han}+/u", $message)) {
|
||||
$errors[] = Tools::displayError('Invalid message');
|
||||
|
@ -66,7 +66,7 @@ class ContactController extends ContactControllerCore {
|
||||
$this->errors[] = Tools::displayError('Invalid');
|
||||
}
|
||||
elseif ($mathCaptcha->check($captcha_ans) !== true) {
|
||||
$this->errors[] = Tools::displayError('Invalid');
|
||||
$this->errors[] = Tools::displayError('For security reasons, thank you to solve the addition to validate the sending of your message');
|
||||
}
|
||||
elseif (preg_match("/\p{Han}+/u", $message)) {
|
||||
$this->errors[] = Tools::displayError('Invalid message');
|
||||
|
Loading…
Reference in New Issue
Block a user