URL encode password in JDBC connection string (#4527)

This commit is contained in:
Lance Pioch
2022-11-06 17:24:33 -05:00
committed by GitHub
parent c068f57e4e
commit 9b218f2190

View File

@@ -35,7 +35,7 @@ export default ({ database, className }: Props) => {
const removeDatabase = ServerContext.useStoreActions((actions) => actions.databases.removeDatabase);
const jdbcConnectionString = `jdbc:mysql://${database.username}${
database.password ? `:${database.password}` : ''
database.password ? `:${encodeURIComponent(database.password)}` : ''
}@${database.connectionString}/${database.name}`;
const schema = object().shape({