Browse Source

Single-character values in HTML get forms are now processed correctly when at the end of the query string.

release/0.19
Jessica James 9 years ago
parent
commit
5620679e80
  1. 8
      Jupiter/HTTP_QueryString.h

8
Jupiter/HTTP_QueryString.h

@ -185,6 +185,14 @@ inline Jupiter::HTTP::HTMLFormResponse::HTMLFormResponse(const char *ptr, size_t
// copy last 2 characters
*buf = *ptr;
if (*buf == '=') // End of key, start of value
{
key.set(token_start, ++buf - token_start);
*buf = *++ptr;
Jupiter::HTTP::HTMLFormResponse::table.set(key, Jupiter::ReferenceString(ptr, 1));
}
else
*++buf = *++ptr;
if (key.isNotEmpty()) // A key was already set; end of value

Loading…
Cancel
Save