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
Unknown Object (File)
Mon, Mar 3, 4:18 PM
Unknown Object (File)
Sun, Feb 9, 1:11 AM
Unknown Object (File)
Sat, Feb 8, 10:29 PM
Unknown Object (File)
Feb 3 2025, 2:25 AM
Unknown Object (File)
Jan 29 2025, 6:11 AM
Unknown Object (File)
Jan 16 2025, 7:59 PM
Unknown Object (File)
Jan 16 2025, 7:44 AM
Unknown Object (File)
Jan 10 2025, 7:17 AM
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