summaryrefslogtreecommitdiffstats
path: root/userprefs.cgi
diff options
context:
space:
mode:
authorzach%zachlipton.com <>2001-09-24 02:20:50 +0200
committerzach%zachlipton.com <>2001-09-24 02:20:50 +0200
commitcad844da937ca3b3ef3976ec33200e77481bdeaf (patch)
tree5b67c665a8473ffe04d7e353255775a55c6fb95c /userprefs.cgi
parentc8f4a04189ab6874d26a470c6e57dda22071b331 (diff)
downloadbugzilla-cad844da937ca3b3ef3976ec33200e77481bdeaf.tar.gz
bugzilla-cad844da937ca3b3ef3976ec33200e77481bdeaf.tar.xz
Fix for bug 93388: Full name should be trimmed of whitespace before going
into database. r1=Zach Lipton <zach@zachlipton.com> r2=Andreas Franke <afranke@ags.uni-sb.de>. Patch by Christopher Aillon <caillon@returnzero.com>.
Diffstat (limited to 'userprefs.cgi')
-rwxr-xr-xuserprefs.cgi4
1 files changed, 2 insertions, 2 deletions
diff --git a/userprefs.cgi b/userprefs.cgi
index 0eeda0e71..4e73ec3a9 100755
--- a/userprefs.cgi
+++ b/userprefs.cgi
@@ -17,7 +17,7 @@
# Dan Mosedale <dmose@mozilla.org>
# Alan Raetz <al_raetz@yahoo.com>
# David Miller <justdave@syndicomm.com>
-#
+# Christopher Aillon <christopher@aillon.com>
use diagnostics;
use strict;
@@ -171,7 +171,7 @@ sub SaveAccount {
WHERE userid = $userid");
}
SendSQL("UPDATE profiles SET " .
- "realname = " . SqlQuote($::FORM{'realname'}) .
+ "realname = " . SqlQuote(trim($::FORM{'realname'})) .
" WHERE userid = $userid");
}