From 3f294d5597429f7456c41f65e601dd83269ba5da Mon Sep 17 00:00:00 2001
From: Brian Warner <warner@allmydata.com>
Date: Mon, 16 Jul 2007 12:00:54 -0700
Subject: [PATCH] webish: oops, handle POST without localfile= too

---
 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 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"
-- 
2.45.2