Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Retain leading slash when trust store beings with 'file:///'
  • Loading branch information
danjahner committed Mar 28, 2017
1 parent 03478c5 commit 5422c4f
Showing 1 changed file with 0 additions and 1 deletion.
Expand Up @@ -99,7 +99,6 @@ public MariaDbX509TrustManager(Options options) throws SQLException {
String trustStore = options.trustStore;

//permit using "file:..." for compatibility
if (trustStore.startsWith("file:///")) trustStore = trustStore.substring(8);
if (trustStore.startsWith("file://")) trustStore = trustStore.substring(7);
inStream = new FileInputStream(trustStore);

Expand Down

0 comments on commit 5422c4f

Please sign in to comment.