From 189ad85bcdcc75a5543a6894a56728d721b456f5 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sat, 4 Mar 2006 18:00:55 +0000 Subject: [PATCH] - Patch #52433 by Zen: removed redundant db_escape_string(). --- modules/user.module | 2 +- modules/user/user.module | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/user.module b/modules/user.module index 90d4a1e1e69..ca7239f966a 100644 --- a/modules/user.module +++ b/modules/user.module @@ -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'"; } diff --git a/modules/user/user.module b/modules/user/user.module index 90d4a1e1e69..ca7239f966a 100644 --- a/modules/user/user.module +++ b/modules/user/user.module @@ -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'"; }