Skip to content

fix: Sanitize account names#2105

Merged
jubalh merged 1 commit intomasterfrom
fix/2103
Mar 8, 2026
Merged

fix: Sanitize account names#2105
jubalh merged 1 commit intomasterfrom
fix/2103

Conversation

@jubalh
Copy link
Copy Markdown
Member

@jubalh jubalh commented Mar 8, 2026

GKeyFile parses ini-like config files. So the characters '[', ']', and '=' cannot be used.
We will replace them with '_' now.

This bug was found when a user wanted to connect to an IPv6 address (user@[ipv6:address]).

One problem could be that we get duplicate account names with they would use one of those 3 characters. But I consider this very unlikely.

Fix #2103

GKeyFile parses ini-like config files. So the characters '[', ']',
and '=' cannot be used.
We will replace them with '_' now.

This bug was found when a user wanted to connect to an IPv6 address (user@[ipv6:address]).

One problem could be that we get duplicate account names with they would
use one of those 3 characters. But I consider this very unlikely.

Fix #2103
@jubalh jubalh added this to the next milestone Mar 8, 2026
@jubalh jubalh self-assigned this Mar 8, 2026
@jubalh jubalh merged commit 7663c33 into master Mar 8, 2026
7 checks passed
@jubalh jubalh deleted the fix/2103 branch March 8, 2026 21:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Profanity core dumps when trying to connect to an IPv6 address

1 participant