From 3df8df720a35269b0aa69d3cc4fd7288b5445aa0 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Sat, 24 Apr 2010 11:07:41 +0000 Subject: uhttpd: - ignore authentication realms that refer to user accounts with no password set yet (X-Wrt compatibility) - fix off-by-one in CGI header parsing, fixes cgi programs that emit bad header lines (AsteriskGUI compatibility) - bump version SVN-Revision: 21121 --- package/uhttpd/src/uhttpd-cgi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'package/uhttpd/src/uhttpd-cgi.c') diff --git a/package/uhttpd/src/uhttpd-cgi.c b/package/uhttpd/src/uhttpd-cgi.c index 1a6c6ad..855a72f 100644 --- a/package/uhttpd/src/uhttpd-cgi.c +++ b/package/uhttpd/src/uhttpd-cgi.c @@ -68,7 +68,7 @@ static struct http_response * uh_cgi_header_parse(char *buf, int len, int *off) if( (pos < len) && (buf[pos] == '\n') ) pos++; - if( pos < len ) + if( pos <= len ) { if( (hdrcount + 1) < array_size(res.headers) ) { -- cgit v1.1