summaryrefslogtreecommitdiffstats
path: root/userprefs.cgi
diff options
context:
space:
mode:
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");
}