News for hackers. Stuff that matters.
Re:30 Years of <Br> Tags by shakna on Tuesday December 16, 2025 @09:35PM (#46297577)
That would fail on a user supplying a multiple where you don't expect.

> If multiple fields are used (i.e. a variable that may contain several values) the value returned contains all these values concatenated together with a newline character as separator.

Re:30 Years of <Br> Tags by 1718627440 on Wednesday December 17, 2025 @03:21AM (#46299481)
Why? The actual implementation of cgiGetValue I am talking about does exactly that:

> concatenated together with a newline character

Re:30 Years of <Br> Tags by stouset on Wednesday December 17, 2025 @03:50PM (#46305320)
In GP’s defense, there is no standard behavior in the spec for handling repeated GET query parameters. Therefore any implementation-defined behavior is reasonable, including: keeping only the first, keeping only the last, keeping one at random, allowing access to all of them, concatenating them all with a separator, discarding the entire thing, etc.