Skip to content

Commit bf93536

Browse files
committed
Merge openj9 into openj9-staging
Signed-off-by: Peter Shipton <[email protected]>
2 parents 4bb7ef7 + f16bd0b commit bf93536

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

closed/src/java.base/share/classes/openj9/internal/security/RestrictedSecurity.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1570,7 +1570,7 @@ private void setConstraints(String providerName, String providerInfo, boolean pr
15701570

15711571
// Check whether constraints are properly specified.
15721572
final String typeRE = "\\w+";
1573-
final String algoRE = "[A-Za-z0-9./_-]+";
1573+
final String algoRE = "[A-Za-z0-9./_:#-]+";
15741574
final String attrRE = "[A-Za-z0-9=*|.:]+";
15751575
final String usesRE = "[A-Za-z0-9._:/$]+";
15761576
final String consRE = "\\{(" + typeRE + "),(" + algoRE + "),(" + attrRE + ")(," + usesRE + ")?\\}";
@@ -1916,7 +1916,7 @@ private static void checkProviderFormat(String providerInfo, boolean update) {
19161916
+ "(\\[" // constraints [optional]
19171917
+ "\\s*"
19181918
+ "([+-])?" // action [optional]
1919-
+ "[A-Za-z0-9{}.=*|:$,/_\\s-]+" // constraint definition
1919+
+ "[A-Za-z0-9{}.=*|:$#,/_\\s-]+" // constraint definition
19201920
+ "\\])?"
19211921
+ "\\s*"
19221922
+ "$");

0 commit comments

Comments
 (0)