cgi-io: fix read after end errors
authorAnsuel Smith <ansuelsmth@gmail.com>
Tue, 8 Oct 2019 20:34:11 +0000 (22:34 +0200)
committerPetr Štetiar <ynezz@true.cz>
Fri, 11 Oct 2019 12:33:24 +0000 (14:33 +0200)
commitaf5585ac88eb3dbcef8c6c7dbe662940ae1d558e
treed0be3519ac1a1511ec16637f06a7b867566804c2
parent92bea7f8e935a0a227696467c03c38209b270190
cgi-io: fix read after end errors

Currently cgi-io try to read data after the data ended.
- Adds "-" to whitelist char
- In main_upload is tried to consume the buffer while it's already readed by the while loop before

Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
(cherry picked from commit 535b2b6bd8a7f7a0a7a6914c8091619ea6f8961f)
net/cgi-io/Makefile
net/cgi-io/src/main.c