summary refs log tree commit diff stats
path: root/tests/stdlib/tsince.nim
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 /tests/stdlib/tsince.nim
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 'tests/stdlib/tsince.nim')
0 files changed, 0 insertions, 0 deletions
f='/akkartik/mu/commit/tangle.mu?h=main&id=20d1c9057a559ce8db83bbc2787ca91348bcb16f'>20d1c905 ^
662d2a27 ^
20d1c905 ^

662d2a27 ^
20d1c905 ^
9458918f ^
ce87c19e ^
1ead3562 ^
20d1c905 ^

662d2a27 ^
20d1c905 ^
192d59d3 ^

32241605 ^
20d1c905 ^

1ead3562 ^
192d59d3 ^
d66e2783 ^
192d59d3 ^
20d1c905 ^

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37