mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 09:43:03 +00:00
fixed bug 2263
This commit is contained in:
parent
f4f248387d
commit
42c20c3955
1 changed files with 1 additions and 2 deletions
|
@ -280,7 +280,6 @@ function process_account_form($UTYPE,$TYPE,$A,$U="",$T="",$S="",$E="",
|
|||
#
|
||||
|
||||
#md5 hash the password
|
||||
$P = md5($P);
|
||||
$q = "UPDATE Users SET ";
|
||||
$q.= "Username = '".mysql_escape_string($U)."'";
|
||||
if ($T) {
|
||||
|
@ -293,7 +292,7 @@ function process_account_form($UTYPE,$TYPE,$A,$U="",$T="",$S="",$E="",
|
|||
}
|
||||
$q.= ", Email = '".mysql_escape_string($E)."'";
|
||||
if ($P) {
|
||||
$q.= ", Passwd = '".mysql_escape_string($P)."'";
|
||||
$q.= ", Passwd = '".mysql_escape_string(md5($P))."'";
|
||||
}
|
||||
$q.= ", RealName = '".mysql_escape_string($R)."'";
|
||||
$q.= ", LangPreference = '".mysql_escape_string($L)."'";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue