We are using lighttpd in a surveilance camera application. Some of the systems we need to interface to send a trailing space on most lines of the http requests they make. The following code appears in a couple of places:
r = strtoll(ds->value->ptr, &err, 10);
if (*err != '\0') {
This test relies on their being no characters after the last digit before the end of the input string. The following tests for valid digits being found:
if (err != ds->value->ptr) {
May I request that the parser be tolerant to sequences of multiple spaces interspersed at any point where a space is legal and at the end of lines.