Skip to content

Commit

Permalink
fixing to use quoted password (#2413)
Browse files Browse the repository at this point in the history
  • Loading branch information
aimethed authored Nov 20, 2024
1 parent 0b81e21 commit 153b751
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public Connection getConnection(final JdbcCredentialProvider jdbcCredentialProvi
password = String.format("\"%s\"", password);
}
final String secretReplacement = String.format("%s/%s", jdbcCredentialProvider.getCredential().getUser(),
jdbcCredentialProvider.getCredential().getPassword());
password);
derivedJdbcString = secretMatcher.replaceAll(Matcher.quoteReplacement(secretReplacement));
LOGGER.info("derivedJdbcString: " + derivedJdbcString);
return DriverManager.getConnection(derivedJdbcString, properties);
Expand Down

0 comments on commit 153b751

Please sign in to comment.