projects
/
tahoe-lafs
/
tahoe-lafs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f207f4a
)
webish: oops, handle POST without localfile= too
author
Brian Warner
<warner@allmydata.com>
Mon, 16 Jul 2007 19:00:54 +0000
(12:00 -0700)
committer
Brian Warner
<warner@allmydata.com>
Mon, 16 Jul 2007 19:00:54 +0000
(12:00 -0700)
src/allmydata/webish.py
patch
|
blob
|
history
diff --git
a/src/allmydata/webish.py
b/src/allmydata/webish.py
index adcb575e4e36e1ac0fe7473531b39e5484f8bb81..6ec7a5e8de5cd97ab20a30c57fcf1d1c11beaa23 100644
(file)
--- 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"