fix captcha

git-svn-id: https://webim.svn.sourceforge.net/svnroot/webim/trunk@801 c66351dc-e62f-0410-b875-e3a5c0b9693f
This commit is contained in:
Evgeny Gryaznov 2010-05-02 12:35:24 +00:00
parent a99a621a66
commit b1e2624702
2 changed files with 2 additions and 2 deletions

View File

@ -23,7 +23,7 @@ require_once('libs/common.php');
require_once('libs/captcha.php');
$captchaCode = gen_captcha();
$_SESSION["captcha"] = $captchaCode;
$_SESSION["mibew_captcha"] = $captchaCode;
draw_captcha($captchaCode);
exit;

View File

@ -84,7 +84,7 @@ if( !$email ) {
if($settings["enablecaptcha"] == "1" && can_show_captcha()) {
$captcha = getparam('captcha');
$original = isset($_SESSION['captcha']) ? $_SESSION['captcha'] : "";
$original = isset($_SESSION["mibew_captcha"]) ? $_SESSION["mibew_captcha"] : "";
if(empty($original) || empty($captcha) || $captcha != $original) {
$errors[] = getlocal('errors.captcha');
}