From b6ff38e4c75624f44eb4b43cfd1460bcaf674c37 Mon Sep 17 00:00:00 2001 From: Brian Warner Date: Fri, 10 Aug 2007 17:25:28 -0700 Subject: [PATCH] webish.POSTHandler: fix typo that meant we didn't look for 'name' in req.fields --- src/allmydata/webish.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.45.2