forked from kk-open/kkFileView
精简压缩包解析的无用代码
精简压缩包解析的无用代码 Signed-off-by: 高雄 <admin@cxcp.com>
This commit is contained in:
parent
f771d361ae
commit
888e550453
|
|
@ -165,7 +165,10 @@ public class FileController {
|
||||||
fileUrl = WebUtils.decodeUrl(urls);
|
fileUrl = WebUtils.decodeUrl(urls);
|
||||||
} catch (Exception ex) {
|
} catch (Exception ex) {
|
||||||
String errorMsg = String.format(BASE64_DECODE_ERROR_MSG, "url");
|
String errorMsg = String.format(BASE64_DECODE_ERROR_MSG, "url");
|
||||||
return errorMsg;
|
return ReturnResponse.failure(errorMsg);
|
||||||
|
}
|
||||||
|
if (KkFileUtils.isIllegalFileName(fileUrl)) {
|
||||||
|
return ReturnResponse.failure("不允许访问的路径:");
|
||||||
}
|
}
|
||||||
return RarUtils.getTree(fileUrl);
|
return RarUtils.getTree(fileUrl);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue