From: jake%acutex.net <> Date: Sat, 27 Oct 2001 01:35:04 +0000 (+0000) Subject: Bug 81594 - SQL error after editing user entry when changing numerous things at once... X-Git-Tag: bugzilla-2.14.1~40 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=83dd5d76cfb9037fa41f34aeddbf44b5d65c55aa;p=thirdparty%2Fbugzilla.git Bug 81594 - SQL error after editing user entry when changing numerous things at once (including the login name). Patch by Matthew Tuck r= dkl@redhat.com, jake@acutex.net --- diff --git a/editusers.cgi b/editusers.cgi index b72be6e515..3e4a20e3b2 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);