diff options
author | Mildred Ki'Lya <mildred@users.noreply.github.com> | 2021-01-12 13:42:05 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-12 13:42:05 +0100 |
commit | 71db2be83351aac3347f95dd545466a447ed1c07 (patch) | |
tree | 781477297aca643221505c52819d02765b912a4a /testament | |
parent | bb3c6d079772f2724c051c3ff3ccba90960548e2 (diff) | |
download | Nim-71db2be83351aac3347f95dd545466a447ed1c07.tar.gz |
Improve uri.parseQuery to never raise an error (#16647)
In case of malformed query string where there is `=` on the value, handle this character as part of the value instead of throwing an error. The following query string should no longer crash a program: key=value&key2=x=1 It will be interpreted as [("key", "value"), ("key2", "x=1")] This is correct according to latest WhatWG's HTML5 specification recarding the urlencoded parser: https://url.spec.whatwg.org/#concept-urlencoded-parser Older behavior can be restored using the -d:nimLegacyParseQueryStrict flag.
Diffstat (limited to 'testament')
0 files changed, 0 insertions, 0 deletions