pace / bricks

A standard library for microservices.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ScanParameters ignores characters after first whitespace

danielbalteanu96 opened this issue · comments

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".

n, _ := fmt.Sscan(scanData, param.Data) // nolint: gosec