GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — email.utils.parseaddr(strict=True) silently splices inline comments in the local-part · Issue #159475 · python/cpython Open Labels stdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytopic-emailtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error Description
>>> from email.utils import parseaddr >>> parseaddr('u(comment)[email protected]', strict=True) ('comment comment', '[email protected]') The strict parser rejects the same input: >>> from email.headerregistry import Address >>> Address(addr_spec='u(comment)[email protected]') InvalidHeaderDefect: local-part is not dot-atom, quoted-string, or obs-local-part So a caller that validates or authorizes with Proposal: in strict mode, fail closed (return Reproduced on CPython 3.14.6. Linked PRsActivity
MetadataMetadataAssigneesLabelsstdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytopic-emailtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error ProjectsMilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402520 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |