From: Brian Warner <warner@allmydata.com>
Date: Mon, 16 Jul 2007 19:00:54 +0000 (-0700)
Subject: webish: oops, handle POST without localfile= too
X-Git-Url: https://git.rkrishnan.org/frontends/specifications/%22news.html/%22file:/something?a=commitdiff_plain;h=3f294d5597429f7456c41f65e601dd83269ba5da;p=tahoe-lafs%2Ftahoe-lafs.git

webish: oops, handle POST without localfile= too
---

diff --git a/src/allmydata/webish.py b/src/allmydata/webish.py
index adcb575e..6ec7a5e8 100644
--- a/src/allmydata/webish.py
+++ b/src/allmydata/webish.py
@@ -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"