changeset 2433:738c0c3d001c

fix exception when saving userprefs with empty jabber id
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Fri, 20 Jul 2007 03:50:28 +0200
parents 81afe010284f
children 5742ec1cbb37 19bf80768b8a
files MoinMoin/userprefs/prefs.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/userprefs/prefs.py	Fri Jul 20 03:47:04 2007 +0200
+++ b/MoinMoin/userprefs/prefs.py	Fri Jul 20 03:50:28 2007 +0200
@@ -103,7 +103,7 @@
 
         if not 'jid' in theuser.auth_attribs:
             # try to get the jid
-            jid = wikiutil.clean_input(form.get('jid', "")[0]).strip()
+            jid = wikiutil.clean_input(form.get('jid', [''])[0]).strip()
 
             jid_changed = theuser.jid != jid
             previous_jid = theuser.jid