diff --git a/src/net/sourceforge/plantuml/security/SecurityProfile.java b/src/net/sourceforge/plantuml/security/SecurityProfile.java index 08bd48850..fea51d35e 100644 --- a/src/net/sourceforge/plantuml/security/SecurityProfile.java +++ b/src/net/sourceforge/plantuml/security/SecurityProfile.java @@ -165,13 +165,17 @@ public enum SecurityProfile { if (name == null) return false; - if (this == UNSECURE) + final String lname = name.toLowerCase(); + if (lname.startsWith("plantuml.security")) + return false; + + if (lname.startsWith("plantuml")) return true; - - if (name.toLowerCase().startsWith("plantuml")) + + if (lname.equals("path.separator") || lname.equals("line.separator")) return true; - - return true; + + return this == UNSECURE; } } diff --git a/test/net/sourceforge/plantuml/tim/stdlib/GetenvTest.java b/test/net/sourceforge/plantuml/tim/stdlib/GetenvTest.java index 193fa6ab8..aea38a745 100644 --- a/test/net/sourceforge/plantuml/tim/stdlib/GetenvTest.java +++ b/test/net/sourceforge/plantuml/tim/stdlib/GetenvTest.java @@ -46,7 +46,6 @@ class GetenvTest { */ @ParameterizedTest @ValueSource(strings = { - "java.version", "path.separator", "line.separator", })