ScanParameters ignores characters after first whitespace
danielbalteanu96 opened this issue · comments
danielbalteanu96 commented
The ScanParameters
functions uses Sscan
, which removes characters after the first whitespace.
E.g.: for /?filter[productName]=Super Plus
,
fmt.Sscan(u.Query().Get("filter[productName]"), &s)
results in s = "Super"
.
bricks/http/jsonapi/runtime/parameters.go
Line 97 in c66c8d2
Marius Neugebauer commented