Page MenuHomePhabricator

Make Conduit "www-form-urlencoded" parsing of "true" and "false" case-insensitive
ClosedPublic

Authored by epriestley on Apr 27 2020, 8:26 PM.
Tags
None
Referenced Files
F18717415: D21177.diff
Mon, Sep 29, 1:56 PM
F18711111: D21177.id50429.diff
Mon, Sep 29, 3:38 AM
F18620194: D21177.diff
Sep 15 2025, 4:30 AM
F18519463: D21177.diff
Sep 5 2025, 4:58 PM
F17756354: D21177.id50430.diff
Jul 22 2025, 1:56 PM
F17712074: D21177.diff
Jul 17 2025, 9:23 AM
Unknown Object (File)
Jun 17 2025, 8:20 AM
Unknown Object (File)
Jun 16 2025, 6:55 PM
Subscribers
None

Details

Summary

See PHI1710. Python encodes True as True (with an uppercase "T") when building URLs.

We currently do not accept this as a "truthy" value, but it's reasonable and unambiguous. Accept "True", "TRUE", "tRuE", etc.

Test Plan

Made a cURL conduit call with "True" and "tRuE". Before patch: failure to decoded booleans; after patch: successful interpretation of "true" variations.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable