aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/meddleware
diff options
context:
space:
mode:
authorJoar Wandborg <git@wandborg.com>2012-09-29 21:07:15 +0200
committerJoar Wandborg <git@wandborg.com>2012-09-29 21:08:20 +0200
commit111a609df526bd3690fc03e623eaf5826f33f4d2 (patch)
tree87029ee907afd4f35896ddfe582437b59747dccc /mediagoblin/meddleware
parenta6ec38c3c1caf4735f2da45a12fb2d0a5861d830 (diff)
downloadmediagoblin-111a609df526bd3690fc03e623eaf5826f33f4d2.tar.lz
mediagoblin-111a609df526bd3690fc03e623eaf5826f33f4d2.tar.xz
mediagoblin-111a609df526bd3690fc03e623eaf5826f33f4d2.zip
Replaced all request.POST with request.form, ...
- Fixed error handling in OAuth plugin - Changed request.POST file fields to request.files
Diffstat (limited to 'mediagoblin/meddleware')
-rw-r--r--mediagoblin/meddleware/csrf.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mediagoblin/meddleware/csrf.py b/mediagoblin/meddleware/csrf.py
index 74502dc4..1488e6d9 100644
--- a/mediagoblin/meddleware/csrf.py
+++ b/mediagoblin/meddleware/csrf.py
@@ -132,7 +132,7 @@ class CsrfMeddleware(BaseMeddleware):
return HTTPForbidden()
# get the form token and confirm it matches
- form = CsrfForm(request.POST)
+ form = CsrfForm(request.form)
if form.validate():
form_token = form.csrf_token.data