Merge branch 'ticket/r15109-math-captcha' into develop

This commit is contained in:
Michael RICOIS 2018-03-06 17:28:18 +01:00
commit bd8981af81
2 changed files with 2 additions and 2 deletions

View File

@ -63,7 +63,7 @@ if (Tools::isSubmit('submitMessage')) {
$errors[] = Tools::displayError('Invalid'); $errors[] = Tools::displayError('Invalid');
} }
elseif ($mathCaptcha->check($captcha_ans) !== true) { 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)) { elseif (preg_match("/\p{Han}+/u", $message)) {
$errors[] = Tools::displayError('Invalid message'); $errors[] = Tools::displayError('Invalid message');

View File

@ -66,7 +66,7 @@ class ContactController extends ContactControllerCore {
$this->errors[] = Tools::displayError('Invalid'); $this->errors[] = Tools::displayError('Invalid');
} }
elseif ($mathCaptcha->check($captcha_ans) !== true) { 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)) { elseif (preg_match("/\p{Han}+/u", $message)) {
$this->errors[] = Tools::displayError('Invalid message'); $this->errors[] = Tools::displayError('Invalid message');