mirror of
https://gitee.com/dromara/Jpom.git
synced 2024-12-02 03:48:05 +08:00
白名单提示
This commit is contained in:
parent
69d9f4fa14
commit
5cd80ce4df
@ -106,7 +106,7 @@ public class NginxController extends BaseController {
|
||||
return JsonMessage.getString(400, "文件名存在非法字符");
|
||||
}
|
||||
if (!whitelistDirectoryService.checkNgxDirectory(whitePath)) {
|
||||
throw new RuntimeException("请选择正确的项目路径,或者还没有配置白名单");
|
||||
return JsonMessage.getString(400, "请选择正确的白名单");
|
||||
}
|
||||
boolean add = "add".equals(genre);
|
||||
if ("quick".equals(type)) {
|
||||
|
@ -34,7 +34,6 @@ public class JpomManifest {
|
||||
}
|
||||
if (manifestResources != null) {
|
||||
while (manifestResources.hasMoreElements()) {
|
||||
try {
|
||||
try (InputStream inputStream = manifestResources.nextElement().openStream()) {
|
||||
Manifest manifest = new Manifest(inputStream);
|
||||
Attributes attributes = manifest.getMainAttributes();
|
||||
@ -44,7 +43,6 @@ public class JpomManifest {
|
||||
String timeStamp = attributes.getValue("Jpom-Timestamp");
|
||||
JPOM_MANIFEST.setTimeStamp(timeStamp);
|
||||
}
|
||||
}
|
||||
} catch (Exception ignored) {
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user