cleanup internal forms parameters in postlogin stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Thu, 18 Feb 2010 14:27:00 +0100
branchstable
changeset 4639 82afdc7d8cd8
parent 4638 c7d2145abf61
child 4640 1b83a25cf9f5
cleanup internal forms parameters in postlogin
web/application.py
--- a/web/application.py	Thu Feb 18 14:07:56 2010 +0100
+++ b/web/application.py	Thu Feb 18 14:27:00 2010 +0100
@@ -205,6 +205,8 @@
         #      reopening. Is it actually a problem?
         self._update_last_login_time(req)
         args = req.form
+        for forminternal_key in ('__form_id', '__domid', '__errorurl'):
+            args.pop(forminternal_key, None)
         args['__message'] = req._('welcome %s !') % req.user.login
         if 'vid' in req.form:
             args['vid'] = req.form['vid']