1
1
mirror of https://github.com/pterodactyl/panel.git synced 2024-11-25 18:42:31 +01:00

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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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({