Skip to content

Reject invalid RFC 850 date separators - #21

Open
robjtede wants to merge 1 commit into
pyfisch:mainfrom
robjtede:fix-rfc850-date-separator
Open

robjtede wants to merge 1 commit into
pyfisch:mainfrom
robjtede:fix-rfc850-date-separator

Conversation

@robjtede

@robjtede robjtede commented Nov 2, 2026 •

Copy link
Copy Markdown

drive by fix

RFC 9110, Section 5.6.7 (Date/Time Formats) defines the RFC 850 date grammar as:

rfc850-date = day-name-l "," SP date2 SP time-of-day SP GMT

The SP between date2 and time-of-day specifies a space between the year and time. The parser did not check this byte, so it accepted values such as Sunday, 06-Nov-94X08:49:37 GMT. This change adds the missing check and a regression test.

This branch has not been deployed

No deployments
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.

1 participant