mirror of
https://github.com/Mibew/design.git
synced 2025-01-22 18:10:33 +03:00
Fix for the captcha, forgot to add this ;)
git-svn-id: https://webim.svn.sourceforge.net/svnroot/webim/trunk@566 c66351dc-e62f-0410-b875-e3a5c0b9693f
This commit is contained in:
parent
35ee83443f
commit
dde658a977
@ -35,6 +35,11 @@ if( !$email ) {
|
||||
$errors[] = wrong_field("form.field.email");
|
||||
}
|
||||
}
|
||||
if ( ($_REQUEST["txtCaptcha"] == $_SESSION["security_code"]) &&
|
||||
(!empty($_REQUEST["txtCaptcha"]) && !empty($_SESSION["security_code"])) ) {
|
||||
} else {
|
||||
$errors[] = no_field('errors.captcha');
|
||||
}
|
||||
|
||||
if( count($errors) > 0 ) {
|
||||
$page['formname'] = topage($visitor_name);
|
||||
|
Loading…
Reference in New Issue
Block a user