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