jid: Test for too many @ before the resourcepart
This additionally should optimize the parsing a tiny bit by looking for both @ and / at the same time and iterating on them, instead of one by one. Thanks nicoco for the report!
This commit is contained in:
parent
772a326053
commit
f5f35eab20
3 changed files with 80 additions and 48 deletions
|
|
@ -1,3 +1,9 @@
|
|||
Version NEXT:
|
||||
* Additions:
|
||||
- Add missing check for JIDs with too many `@` before the resource, such as
|
||||
`a@b@c` or `a@b@c/d` which should clearly be invalid. The new error it
|
||||
produces is named `TooManyAts`.
|
||||
|
||||
Version 0.11.1, release 2024-07-23:
|
||||
* Breaking:
|
||||
- Move InnerJid into Jid and reformulate BareJid and FullJid in terms of
|
||||
|
|
|
|||
Loading…
Reference in a new issue