Attachment 'userform_POST.patch'
Download 1 * looking for arch@arch.thinkmo.de--2003-archives/moin--main--1.5--patch-123 to compare with
2 * comparing to arch@arch.thinkmo.de--2003-archives/moin--main--1.5--patch-123
3 M MoinMoin/wikiaction.py
4
5 * modified files
6
7 --- orig/MoinMoin/wikiaction.py
8 +++ mod/MoinMoin/wikiaction.py
9 @@ -729,9 +729,16 @@
10
11
12 def do_userform(pagename, request):
13 - from MoinMoin import userform
14 - savemsg = userform.savedata(request)
15 - Page(request, pagename).send_page(request, msg=savemsg)
16 + _ = request.getText
17 + # Require POST for anyting that can change user data
18 + if (request.request_method != 'POST' and
19 + 'create' in request.form or 'save' in request.form):
20 + msg = _("Use UserPreferences to change your settings or create "
21 + "an account.")
22 + else:
23 + from MoinMoin import userform
24 + msg = userform.savedata(request)
25 + Page(request, pagename).send_page(request, msg=msg)
26
27 def do_bookmark(pagename, request):
28 if request.form.has_key('time'):
Attached Files
To refer to attachments on a page, use attachment:filename, as shown below in the list of files. Do NOT use the URL of the [get] link, since this is subject to change and can break easily.You are not allowed to attach a file to this page.