mirror of https://github.com/zlatinb/muwire
prevent empty input from sharing the I2P working dir
parent
8e3f76f68c
commit
6283287bee
|
@ -143,7 +143,7 @@ public class FilesServlet extends HttpServlet {
|
|||
}
|
||||
if (action.equals("share")) {
|
||||
String file = req.getParameter("file");
|
||||
if (file == null) {
|
||||
if (file == null || file.trim().length() == 0) {
|
||||
resp.sendError(403, "Bad param");
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue