Dolda2000 GitWeb
/
wrw.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
118fcef
)
Fixed form-parsing bug.
author
Fredrik Tolf
<fredrik@dolda2000.com>
Wed, 7 May 2014 16:13:22 +0000
(18:13 +0200)
committer
Fredrik Tolf
<fredrik@dolda2000.com>
Wed, 7 May 2014 16:13:22 +0000
(18:13 +0200)
wrw/form.py
patch
|
blob
|
blame
|
history
diff --git
a/wrw/form.py
b/wrw/form.py
index
a57a812
..
53fc82d
100644
(file)
--- a/
wrw/form.py
+++ b/
wrw/form.py
@@
-7,7
+7,7
@@
def formparse(req):
buf = {}
buf.update(urllib.parse.parse_qsl(req.query))
if req.ihead.get("Content-Type") == "application/x-www-form-urlencoded":
- rbody = req.input(2 ** 20)
+ rbody = req.input
.read
(2 ** 20)
if len(rbody) >= 2 ** 20:
raise ValueError("x-www-form-urlencoded data is absurdly long")
buf.update(urllib.parse.parse_qsl(rbody.decode("latin1")))