Compare commits

...

4 Commits

Author SHA1 Message Date
云飞扬 8cf5b47384
Pre Merge pull request !292 from 云飞扬/N/A 2025-03-10 03:45:46 +00:00
若依 a6bcebb62b
!397 修复actuator暴漏问题
Merge pull request !397 from 威士忌的纯度/N/A
2025-03-10 03:45:34 +00:00
威士忌的纯度 1cb262daa3
修复actuator暴漏问题
Signed-off-by: 威士忌的纯度 <whr888888@vip.qq.com>
2025-03-07 10:22:52 +00:00
云飞扬 a3d0bc469b
上传文件时,不区分文件类型大小写。
Signed-off-by: 云飞扬 <15678871232@qq.com>
2022-12-01 03:55:46 +00:00
2 changed files with 2 additions and 2 deletions

View File

@ -29,7 +29,7 @@ http {
}
# 避免actuator暴露
if ($request_uri ~ "/actuator") {
if ($uri ~ "/actuator") {
return 403;
}

View File

@ -122,7 +122,7 @@ export default {
if (this.fileType) {
const fileName = file.name.split('.');
const fileExt = fileName[fileName.length - 1];
const isTypeOk = this.fileType.indexOf(fileExt) >= 0;
const isTypeOk = this.fileType.toLowerCase().indexOf(fileExt.toLowerCase()) >= 0;
if (!isTypeOk) {
this.$modal.msgError(`文件格式不正确,请上传${this.fileType.join("/")}格式文件!`);
return false;