aboutsummaryrefslogtreecommitdiffstats
path: root/createaccount.cgi
diff options
context:
space:
mode:
authorzach%zachlipton.com <>2001-09-24 00:20:50 +0000
committerzach%zachlipton.com <>2001-09-24 00:20:50 +0000
commitcad844da937ca3b3ef3976ec33200e77481bdeaf (patch)
tree5b67c665a8473ffe04d7e353255775a55c6fb95c /createaccount.cgi
parentc8f4a04189ab6874d26a470c6e57dda22071b331 (diff)
downloadbugs-cad844da937ca3b3ef3976ec33200e77481bdeaf.tar
bugs-cad844da937ca3b3ef3976ec33200e77481bdeaf.tar.gz
bugs-cad844da937ca3b3ef3976ec33200e77481bdeaf.tar.bz2
bugs-cad844da937ca3b3ef3976ec33200e77481bdeaf.tar.xz
bugs-cad844da937ca3b3ef3976ec33200e77481bdeaf.zip
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 'createaccount.cgi')
-rwxr-xr-xcreateaccount.cgi3
1 files changed, 2 insertions, 1 deletions
diff --git a/createaccount.cgi b/createaccount.cgi
index 5b9bfb9f6..3bf7f51b4 100755
--- a/createaccount.cgi
+++ b/createaccount.cgi
@@ -21,6 +21,7 @@
# Contributor(s): Terry Weissman <terry@mozilla.org>
# David Gardiner <david.gardiner@unisa.edu.au>
# Joe Robins <jmrobins@tgix.com>
+# Christopher Aillon <christopher@aillon.com>
use diagnostics;
use strict;
@@ -53,7 +54,7 @@ if(Param('useLDAP')) {
}
my $login = $::FORM{'login'};
-my $realname = $::FORM{'realname'};
+my $realname = trim($::FORM{'realname'});
if (defined $login) {
CheckEmailSyntax($login);
if (DBname_to_id($login) != 0) {