Pre Merge pull request !192 from 肥猫/N/A

This commit is contained in:
肥猫 2020-07-19 00:12:43 +08:00 committed by Gitee
commit 12891f8c3a
1 changed files with 1 additions and 0 deletions

View File

@ -44,6 +44,7 @@ public class CommonController
{ {
if (!FileUtils.isValidFilename(fileName)) if (!FileUtils.isValidFilename(fileName))
{ {
log.error("远端测试文件名字打印失败{}",fileName);
throw new Exception(StringUtils.format("文件名称({})非法,不允许下载。 ", fileName)); throw new Exception(StringUtils.format("文件名称({})非法,不允许下载。 ", fileName));
} }
String realFileName = System.currentTimeMillis() + fileName.substring(fileName.indexOf("_") + 1); String realFileName = System.currentTimeMillis() + fileName.substring(fileName.indexOf("_") + 1);