Skip to content

Commit 9b218f2

Browse files
authored
URL encode password in JDBC connection string (pterodactyl#4527)
1 parent c068f57 commit 9b218f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

resources/scripts/components/server/databases/DatabaseRow.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export default ({ database, className }: Props) => {
3535
const removeDatabase = ServerContext.useStoreActions((actions) => actions.databases.removeDatabase);
3636

3737
const jdbcConnectionString = `jdbc:mysql://${database.username}${
38-
database.password ? `:${database.password}` : ''
38+
database.password ? `:${encodeURIComponent(database.password)}` : ''
3939
}@${database.connectionString}/${database.name}`;
4040

4141
const schema = object().shape({

0 commit comments

Comments
 (0)