fix bug
This commit is contained in:
@@ -80,6 +80,7 @@ public class GetFileServlet2 extends HttpServlet {
|
|||||||
String reqUrl = req.getRequestURI();
|
String reqUrl = req.getRequestURI();
|
||||||
String i = reqUrl.substring(reqUrl.indexOf("/fs/") + 4, reqUrl.length());
|
String i = reqUrl.substring(reqUrl.indexOf("/fs/") + 4, reqUrl.length());
|
||||||
|
|
||||||
|
System.out.println(i);
|
||||||
if (StringUtils.isBlank(i)) {
|
if (StringUtils.isBlank(i)) {
|
||||||
resp.setStatus(HttpServletResponse.SC_NOT_FOUND);
|
resp.setStatus(HttpServletResponse.SC_NOT_FOUND);
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user