]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
webish.POSTHandler: fix typo that meant we didn't look for 'name' in req.fields
authorBrian Warner <warner@lothar.com>
Sat, 11 Aug 2007 00:25:28 +0000 (17:25 -0700)
committerBrian Warner <warner@lothar.com>
Sat, 11 Aug 2007 00:25:28 +0000 (17:25 -0700)
src/allmydata/webish.py

index 731d593723e51a7196a86be22d56dd6dc309630c..8da27ffc09cb028e38b4f63f85c519d2c5e44c68 100644 (file)
@@ -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)