]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
webish: oops, handle POST without localfile= too
authorBrian Warner <warner@allmydata.com>
Mon, 16 Jul 2007 19:00:54 +0000 (12:00 -0700)
committerBrian Warner <warner@allmydata.com>
Mon, 16 Jul 2007 19:00:54 +0000 (12:00 -0700)
src/allmydata/webish.py

index adcb575e4e36e1ac0fe7473531b39e5484f8bb81..6ec7a5e8de5cd97ab20a30c57fcf1d1c11beaa23 100644 (file)
@@ -502,7 +502,7 @@ class POSTHandler(rend.Page):
             name = req.args["name"][0]
         elif name in req.fields:
             name = req.fields["name"].value
-        if "/" in name:
+        if name and "/" in name:
             req.setResponseCode(http.BAD_REQUEST)
             req.setHeader("content-type", "text/plain")
             return "name= may not contain a slash"