Skip to content

Commit fb061cd

Browse files
author
‘niuerzhuang’
committed
feature: add validator handler.
1 parent 131fefa commit fb061cd

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

dongtai-core/src/main/java/io/dongtai/iast/core/utils/PropertyUtils.java

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ public static List<String> getDisabledPlugins() {
210210
}
211211

212212
public static List<String> getDisabledFeatures() {
213-
if (null == disabledFeatureList){
213+
if (null == disabledFeatureList) {
214214
disabledFeatureList = Optional.ofNullable(System.getProperty("dongtai.disabled.features"))
215215
.map(s -> Arrays.asList(s.split(",")))
216216
.orElse(new ArrayList<>());
@@ -219,17 +219,14 @@ public static List<String> getDisabledFeatures() {
219219
}
220220

221221
public static Boolean isDisabledCustomModel() {
222-
if (null == isDisabledCustomModel){
222+
if (null == isDisabledCustomModel) {
223223
List<String> disabledFeatures = getDisabledFeatures();
224224
isDisabledCustomModel = disabledFeatures.contains("custom-model-collection");
225225
}
226226
return isDisabledCustomModel;
227227
}
228228

229229
public static Boolean validatedSink() {
230-
if (null == isDisabledCustomModel){
231-
isDisabledCustomModel = ConfigBuilder.getInstance().get(ConfigKey.VALIDATED_SINK);
232-
}
233-
return isDisabledCustomModel;
230+
return ConfigBuilder.getInstance().get(ConfigKey.VALIDATED_SINK);
234231
}
235232
}

dongtai-core/src/main/resources/com.secnium.iast.resources/blacklist.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29979,7 +29979,7 @@ org/apache/catalina/connector/CoyoteAdapter$CatalinaAfterServiceListener
2997929979
org/apache/catalina/connector/CoyoteAdapter$RecycleRequiredException
2998029980
#org/apache/catalina/connector/CoyoteOutputStream
2998129981
#org/apache/catalina/connector/CoyoteInputStream
29982-
org/apache/catalina/connector/CoyoteReader
29982+
#org/apache/catalina/connector/CoyoteReader
2998329983
org/apache/catalina/connector/InputBuffer
2998429984
org/apache/catalina/connector/MapperListener
2998529985
#org/apache/catalina/connector/OutputBuffer

0 commit comments

Comments
 (0)