Mercurial > moin > 1.9
changeset 3325:b5cc2b8dc753
ignore revert action when not invoked as POST
author | Johannes Berg <johannes AT sipsolutions DOT net> |
---|---|
date | Wed, 19 Mar 2008 12:06:12 +0100 |
parents | 412aa58400f2 |
children | a82b02396941 |
files | MoinMoin/action/revert.py |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/MoinMoin/action/revert.py Wed Mar 19 12:05:55 2008 +0100 +++ b/MoinMoin/action/revert.py Wed Mar 19 12:06:12 2008 +0100 @@ -10,6 +10,10 @@ def execute(pagename, request): """ restore another revision of a page as a new current revision """ from MoinMoin.PageEditor import PageEditor + + if request.request_method != 'POST': + return + rev = request.rev pg = PageEditor(request, pagename)