File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed
src/main/java/com/microsoft/sqlserver/jdbc Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -1426,9 +1426,10 @@ private boolean validateServerName(String nameInCert) throws CertificateExceptio
14261426 return false ;
14271427 }
14281428
1429- // We do not allow * plus a top-level domain.
1430- // This if statement counts the number of .s in the nameInCert. If it's 1 or less, then reject it.
1431- // This also catches cases where nameInCert is just *
1429+ /* We do not allow * plus a top-level domain.
1430+ * This if statement counts the number of .s in the nameInCert. If it's 1 or less, then reject it.
1431+ * This also catches cases where nameInCert is just *
1432+ */
14321433 if ((nameInCert .length () - nameInCert .replace ("." , "" ).length ()) <= 1 ) {
14331434 return false ;
14341435 }
@@ -1438,9 +1439,10 @@ private boolean validateServerName(String nameInCert) throws CertificateExceptio
14381439 String certAfterWildcard ;
14391440
14401441 if (firstPeriodAfterWildcard < 0 ) {
1441- // if we get something like peter.database.c*, then make certAfterWildcard empty so that we accept
1442- // anything after *.
1443- // both startsWith("") and endswith("") will always resolve to "true".
1442+ /* if we get something like peter.database.c*, then make certAfterWildcard empty so that we accept
1443+ * anything after *.
1444+ * both startsWith("") and endswith("") will always resolve to "true".
1445+ */
14441446 certAfterWildcard = "" ;
14451447 } else {
14461448 certAfterWildcard = nameInCert .substring (firstPeriodAfterWildcard );
You can’t perform that action at this time.
0 commit comments