RED-5293: fixed jdbcUrl-check by adding more checks

This commit is contained in:
Ali Oezyetimoglu 2022-11-10 14:25:23 +01:00
parent 197162b61b
commit 27dcd61e3e

View File

@ -138,7 +138,7 @@ public class TenantManagementService {
// // same as above but with a URL object
try {
String startExpr = "jdbc:postgresql://";
if (!jdbcUrl.startsWith("")) {
if (!jdbcUrl.startsWith(startExpr)) {
throw new IllegalArgumentException("Your jdbcUrl is not URL conform.");
}