Skip to content

Conversation

Paul-Ramshaw
Copy link

Fixes gh-99453.

Malformed Netscape/Mozilla cookie lines previously raised a ValueError and triggered an "http.cookiejar bug!" warning. This change validates that cookie lines contain 7 fields and raises LoadError for malformed lines.

@python-cla-bot
Copy link

python-cla-bot bot commented Sep 28, 2025

All commit authors signed the Contributor License Agreement.

CLA signed

@picnixz picnixz changed the title gh-99453: validate Netscape cookie lines have 7 fields to avoid uncaught ValueError gh-99453: improve entries validation of Netscape/Mozilla cookie files Sep 28, 2025
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.

incorrect "http.cookiejar bug" when catching exception

2 participants