fixed filename

This commit is contained in:
2016-01-24 11:19:12 +01:00
parent 32e23e1a92
commit 994cba4b71

View File

@@ -33,7 +33,7 @@ public class FileServlet extends HttpServlet
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
{
String fileName = request.getPathInfo();
String fileName = request.getPathInfo().substring(1);
if (fileName == null || fileName.equals(""))
{
throw new ServletException("File Name can't be null or empty");