Issue 1736 fixed a rollback code about find account of anwser in member module

git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@10462 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
ngleader 2012-03-23 00:43:07 +00:00
parent ce0d9e5b4c
commit 4ba3fe05ac
2 changed files with 5 additions and 5 deletions

View file

@ -1710,11 +1710,6 @@
if (!$args->user_id) $args->user_id = 't'.$args->member_srl;
if (!$args->user_name) $args->user_name = $args->member_srl;
if(trim($args->find_account_answer))
{
$args->find_account_answer = md5($args->find_account_answer);
}
$output = executeQuery('member.insertMember', $args);
if(!$output->toBool()) {
$oDB->rollback();

View file

@ -252,6 +252,11 @@
}
}
if(strlen($info->find_account_answer) == 32 && preg_match('/[a-zA-Z0-9]+/', $info->find_account_answer))
{
$info->find_account_answer = null;
}
// XSS defence
$oSecurity = new Security($info);
$oSecurity->encodeHTML('user_name', 'nick_name', 'find_account_answer', 'description', 'address.', 'group_list..');