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:
parent
c068f57e4e
commit
9b218f2190
@ -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({
|
||||
|
Loading…
Reference in New Issue
Block a user