Skip to content

Commit

Permalink
modified:add a small change. (apache#2878)
Browse files Browse the repository at this point in the history
  • Loading branch information
TJxiaobao authored Dec 15, 2024
1 parent 948fcb7 commit e999360
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,8 @@ private String constructDatabaseUrl(JdbcProtocol jdbcProtocol) {
// check whether the parameter is valid
if (url.contains("create trigger") || url.contains("create alias") || url.contains("runscript from")
|| url.contains("allowloadlocalinfile") || url.contains("allowloadlocalinfileinpath")
|| url.contains("uselocalinfile")) {
|| url.contains("uselocalinfile") || url.contains("autodeserialize") || url.contains("detectcustomcollations")
|| url.contains("serverstatusdiffinterceptor")) {
throw new IllegalArgumentException("Invalid JDBC URL: contains malicious characters.");
}
// when has config jdbc url, use it
Expand Down

0 comments on commit e999360

Please sign in to comment.