diff MoinMoin/action/cache.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 eda647742453
children ace3bbadf66d
line wrap: on
line diff
--- a/MoinMoin/action/cache.py	Sun Nov 16 16:50:56 2008 +0100
+++ b/MoinMoin/action/cache.py	Sun Nov 16 22:20:21 2008 +0100
@@ -41,7 +41,7 @@
 
 action_name = __name__.split('.')[-1]
 
-# Do NOT get this directly from request.form or user would be able to read any cache!
+# Do NOT get this directly from request.values or user would be able to read any cache!
 cache_arena = 'sendcache'  # just using action_name is maybe rather confusing
 
 # We maybe could use page local caching (not 'wiki' global) to have less directory entries.
@@ -239,7 +239,7 @@
         _do_remove(request, key)
 
 def execute(pagename, request):
-    do = request.form.get('do')
-    key = request.form.get('key')
+    do = request.values.get('do')
+    key = request.values.get('key')
     _do(request, do, key)