1 |
--- mailman-2.1.5.1/Mailman/Cgi/confirm.py.cancel 2007-05-21 14:54:34.000000000 +0200 |
2 |
+++ mailman-2.1.5.1/Mailman/Cgi/confirm.py 2007-05-21 14:56:52.000000000 +0200 |
3 |
@@ -308,8 +308,12 @@ |
4 |
|
5 |
|
6 |
def subscription_cancel(mlist, doc, cookie): |
7 |
- # Discard this cookie |
8 |
- userdesc = mlist.pend_confirm(cookie)[1] |
9 |
+ mlist.Lock() |
10 |
+ try: |
11 |
+ # Discard this cookie |
12 |
+ userdesc = mlist.pend_confirm(cookie)[1] |
13 |
+ finally: |
14 |
+ mlist.Unlock() |
15 |
lang = userdesc.language |
16 |
i18n.set_language(lang) |
17 |
doc.set_language(lang) |