diff MoinMoin/security/textcha.py @ 4424:5ad5753ae311

pre-1.9: request.form has qs args and post data, 1.9: .form only post data, .args only qs args, .values both
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sun, 16 Nov 2008 22:20:21 +0100
parents a952d07dea69
children d44a9c23438c
line wrap: on
line diff
--- a/MoinMoin/security/textcha.py	Sun Nov 16 16:50:56 2008 +0100
+++ b/MoinMoin/security/textcha.py	Sun Nov 16 22:20:21 2008 +0100
@@ -141,8 +141,8 @@
     def _extract_form_values(self, form=None):
         if form is None:
             form = self.request.form
-        question = form.get('textcha-question', [None])[0]
-        given_answer = form.get('textcha-answer', [u''])[0]
+        question = form.get('textcha-question')
+        given_answer = form.get('textcha-answer', u'')
         return question, given_answer
 
     def render(self, form=None):