mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-02-20 17:52:50 +00:00
webish: oops, handle POST without localfile= too
This commit is contained in:
parent
f207f4a199
commit
3f294d5597
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user