fix: 数据源漏洞

This commit is contained in:
taojinlong
2025-09-03 17:45:15 +08:00
committed by taojinlong
parent 955a31c9d1
commit 23a45e72a7

View File

@@ -22,7 +22,9 @@ public class H2 extends DatasourceConfiguration {
DEException.throwException("Has illegal parameter: " + jdbc);
}
}
if (!getJdbcUrl().startsWith("jdbc:h2")) {
DEException.throwException("Illegal jdbcUrl: " + getJdbcUrl());
}
return jdbc;
}