From: Brian Warner Date: Sat, 11 Aug 2007 00:25:28 +0000 (-0700) Subject: webish.POSTHandler: fix typo that meant we didn't look for 'name' in req.fields X-Git-Url: https://git.rkrishnan.org/banana.xhtml?a=commitdiff_plain;h=b6ff38e4c75624f44eb4b43cfd1460bcaf674c37;p=tahoe-lafs%2Ftahoe-lafs.git webish.POSTHandler: fix typo that meant we didn't look for 'name' in req.fields --- diff --git a/src/allmydata/webish.py b/src/allmydata/webish.py index 731d5937..8da27ffc 100644 --- a/src/allmydata/webish.py +++ b/src/allmydata/webish.py @@ -481,7 +481,7 @@ class POSTHandler(rend.Page): name = None if "name" in req.args: name = req.args["name"][0] - elif name in req.fields: + elif "name" in req.fields: name = req.fields["name"].value if name and "/" in name: req.setResponseCode(http.BAD_REQUEST)