Code

- fix case where action isn't present in form, e.g., for xmlrpc
authorschlatterbeck <schlatterbeck@57a73879-2fb5-44c3-a270-3262357dd7e2>
Thu, 8 Apr 2010 14:40:10 +0000 (14:40 +0000)
committerschlatterbeck <schlatterbeck@57a73879-2fb5-44c3-a270-3262357dd7e2>
Thu, 8 Apr 2010 14:40:10 +0000 (14:40 +0000)
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/roundup/trunk@4476 57a73879-2fb5-44c3-a270-3262357dd7e2

roundup/cgi/client.py

index 13e0bfdaa2ebc3a5e79abfe95999dc7f801b2f30..efbe689fff42351aa384489ae6a28ce1c43bf5fc 100644 (file)
@@ -742,7 +742,7 @@ class Client:
             action = ''
         if isinstance(action, list):
             raise SeriousError('broken form: multiple @action values submitted')
-        else:
+        elif action:
             action = action.value.lower()
         if action in ('login', 'register'):
             return