fixed filename
This commit is contained in:
@@ -33,7 +33,7 @@ public class FileServlet extends HttpServlet
|
|||||||
|
|
||||||
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
|
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(""))
|
if (fileName == null || fileName.equals(""))
|
||||||
{
|
{
|
||||||
throw new ServletException("File Name can't be null or empty");
|
throw new ServletException("File Name can't be null or empty");
|
||||||
|
Reference in New Issue
Block a user