```java
public void down(@RequestParam("filePath") String filePath, @RequestParam("fileName") String fileName,HttpServletRequest request , HttpServletResponse response){
filePath = filePath.replace("../","");// *.replace("./","").replace("..","");//修复奇安信扫描路径遍历漏洞(去除路径中的敏感字符../../ ..)
InputStream fis = null;
OutputStream toClient = null;
try {
String path = URLDecoder.decode(filePath,"utf-8");
File file = new File(path);
if(!file.exists()){
response.ad
指定文件路径从服务器下载文件
于 2020-09-07 11:15:09 首次发布