mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2025-04-21 12:27:27 +03:00
[package] uhttpd: cope with variable number of spaces in header lines (#11079)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@30806 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
@@ -337,11 +337,14 @@ static struct http_request * uh_http_header_parse(struct client *cl, char *buffe
|
||||
}
|
||||
|
||||
/* have name but no value and found a colon, start of value */
|
||||
else if( hdrname && !hdrdata && ((i+2) < buflen) &&
|
||||
(buffer[i] == ':') && (buffer[i+1] == ' ')
|
||||
else if( hdrname && !hdrdata &&
|
||||
((i+1) < buflen) && (buffer[i] == ':')
|
||||
) {
|
||||
buffer[i] = 0;
|
||||
hdrdata = &buffer[i+2];
|
||||
hdrdata = &buffer[i+1];
|
||||
|
||||
while ((hdrdata + 1) < (buffer + buflen) && *hdrdata == ' ')
|
||||
hdrdata++;
|
||||
}
|
||||
|
||||
/* have no name and found [A-Za-z], start of name */
|
||||
|
||||
Reference in New Issue
Block a user