fixed filename
This commit is contained in:
1 parent
32e23e1a92
commit
994cba4b71
1 file changed
+1
-1
@@ -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");
|
||||
|
||||
Reference in new issue
Block a user