Skip to content

Commit

Permalink
Fix substring of regex
Browse files Browse the repository at this point in the history
  • Loading branch information
KostasTsiounis committed Jan 20, 2025
1 parent 16753cc commit 865e84f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -872,7 +872,7 @@ boolean isRestrictedServiceAllowed(Service service, boolean isServiceAdded) {
// See if a regex for accepted uses has been specified and apply
// it to the call stack.
if (!isServiceAdded && !isNullOrBlank(cAcceptedUses)) {
cAcceptedUses = cAcceptedUses.substring(1).strip().substring(1, cAcceptedUses.length());
cAcceptedUses = cAcceptedUses.substring(2, cAcceptedUses.length() - 1);
StackTraceElement[] stackElements = Thread.currentThread().getStackTrace();
String stackTrace = Stream.of(stackElements)
.map(se -> se.toString())
Expand Down
2 changes: 1 addition & 1 deletion src/java.base/share/conf/security/java.security
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ RestrictedSecurity.OpenJCEPlusFIPS.FIPS140-3.jce.provider.1 = com.ibm.crypto.plu
{KeyGenerator, SunTlsMasterSecret, *}, \
{KeyGenerator, SunTlsPrf, *}, \
{KeyGenerator, SunTlsRsaPremasterSecret, *}, \
{KeyPairGenerator, EC, *, StackConstraints}, \
{KeyPairGenerator, EC, *}, \
{KeyPairGenerator, RSA, *}, \
{KeyPairGenerator, RSAPSS, *}, \
{Mac, HmacSHA224, *}, \
Expand Down

0 comments on commit 865e84f

Please sign in to comment.