Skip to content

Fix URL.host decoding for nested IDNA labels#979

Open
Abdulmumin1 wants to merge 1 commit into
pydantic:mainfrom
Abdulmumin1:fix-url-host-nested-idna
Open

Fix URL.host decoding for nested IDNA labels#979
Abdulmumin1 wants to merge 1 commit into
pydantic:mainfrom
Abdulmumin1:fix-url-host-nested-idna

Conversation

@Abdulmumin1
Copy link
Copy Markdown

@Abdulmumin1 Abdulmumin1 commented May 22, 2026

Fixes #850.

Summary

  • decode IDNA labels that appear after ASCII labels in URL.host
  • keep malformed punycode labels from leaking idna exceptions from the property
  • add regression coverage for www.égalité-femmes-hommes.gouv.fr

@codspeed-hq
Copy link
Copy Markdown

codspeed-hq Bot commented May 22, 2026

Merging this PR will not alter performance

✅ 7 untouched benchmarks


Comparing Abdulmumin1:fix-url-host-nested-idna (9bac192) with main (d0e0f37)

Open in CodSpeed

@Abdulmumin1 Abdulmumin1 force-pushed the fix-url-host-nested-idna branch from 9960ca4 to 9bac192 Compare May 22, 2026 16:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

URL.host returns Punycode instead of Unicode for some URLS

1 participant