Skip to content

Relaxed header canonicalization treats non-DKIM whitespace as foldable space #26

Open

Description

@bbottema

Canonicalization.RELAXED.canonicalizeHeader uses Java regex \s+ and String.trim(), which also fold/remove form feed, vertical tab and other controls. DKIM relaxed header canonicalization only unfolds CRLF continuation and reduces SP/HTAB. This public utility currently accepts arbitrary strings, so changing its treatment of control characters or caller-supplied terminal CRLF can alter existing direct-call semantics. Track a focused compatibility decision and dedicated tests separately from locale correction; ordinary valid header cases remain covered.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions