Commit 189ad85b authored by Dries's avatar Dries

- Patch #52433 by Zen: removed redundant db_escape_string().

parent a9ff6cd3
......@@ -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'";
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment