mirror of
https://github.com/dataease/dataease.git
synced 2026-05-15 05:22:13 +08:00
fix: 数据源漏洞
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user