fix: 数据源漏洞

This commit is contained in:
taojinlong
2025-09-03 17:45:15 +08:00
parent 8eda251154
commit 0f1b010bc6

View File

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