summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjake%acutex.net <>2001-10-27 03:35:04 +0200
committerjake%acutex.net <>2001-10-27 03:35:04 +0200
commit83dd5d76cfb9037fa41f34aeddbf44b5d65c55aa (patch)
treea25913bd0541372d61d1a8d2c9ed0b7e31f1e9f0
parent9822f8b1596f2729be57a1f904e198ce6566c643 (diff)
downloadbugzilla-83dd5d76cfb9037fa41f34aeddbf44b5d65c55aa.tar.gz
bugzilla-83dd5d76cfb9037fa41f34aeddbf44b5d65c55aa.tar.xz
Bug 81594 - SQL error after editing user entry when changing numerous things at once (including the login name).
Patch by Matthew Tuck <matty@chariot.net.au> r= dkl@redhat.com, jake@acutex.net
-rwxr-xr-xeditusers.cgi2
1 files changed, 1 insertions, 1 deletions
diff --git a/editusers.cgi b/editusers.cgi
index b72be6e51..3e4a20e3b 100755
--- a/editusers.cgi
+++ b/editusers.cgi
@@ -822,7 +822,7 @@ if ($action eq 'update') {
WHERE login_name=" . SqlQuote($userold));
SendSQL("SELECT userid
FROM profiles
- WHERE login_name=" . SqlQuote($user));
+ WHERE login_name=" . SqlQuote($userold));
my $userid = FetchOneColumn();
SendSQL("DELETE FROM logincookies
WHERE userid=" . $userid);