Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Decode field names and filenames correctly #61

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Commits on Oct 18, 2024

  1. fix: Decode field names and filenames correctly

    The HTML5 specification defines that "field names and filenames for file fields [...] must be escaped by replacing any 0x0A (LF) bytes with the byte sequence %0A, 0x0D (CR) with %0D and 0x22 (") with %22. The user agent must not perform any other escapes." and tests show that modern browsers actually do that. This is different from traditional header quoting (which involves backslash-escaping quotes and backslashes).
    
    fixes #60
    defnull committed Oct 18, 2024
    Configuration menu
    Copy the full SHA
    8ee7f0e View commit details
    Browse the repository at this point in the history