summary refs log tree commit diff stats
path: root/ci/build.sh
diff options
context:
space:
mode:
authorMildred Ki'Lya <mildred@users.noreply.github.com>2021-01-12 13:42:05 +0100
committerGitHub <noreply@github.com>2021-01-12 13:42:05 +0100
commit71db2be83351aac3347f95dd545466a447ed1c07 (patch)
tree781477297aca643221505c52819d02765b912a4a /ci/build.sh
parentbb3c6d079772f2724c051c3ff3ccba90960548e2 (diff)
downloadNim-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 'ci/build.sh')
0 files changed, 0 insertions, 0 deletions