- Patch #52433 by Zen: removed redundant db_escape_string().
parent
a9ff6cd372
commit
189ad85bcd
|
@ -162,7 +162,7 @@ function user_save($account, $array = array(), $category = 'account') {
|
|||
// because we don't have a fully initialized user object yet.
|
||||
foreach ($array as $key => $value) {
|
||||
if ($key == 'pass') {
|
||||
$fields[] = db_escape_string($key);
|
||||
$fields[] = $key;
|
||||
$values[] = md5($value);
|
||||
$s[] = "'%s'";
|
||||
}
|
||||
|
|
|
@ -162,7 +162,7 @@ function user_save($account, $array = array(), $category = 'account') {
|
|||
// because we don't have a fully initialized user object yet.
|
||||
foreach ($array as $key => $value) {
|
||||
if ($key == 'pass') {
|
||||
$fields[] = db_escape_string($key);
|
||||
$fields[] = $key;
|
||||
$values[] = md5($value);
|
||||
$s[] = "'%s'";
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue