Revision 2830

View differences:

branches/lighttpd-1.4.x/src/request.c
241 241
			start = s;
242 242

  
243 243
			for (; *s != ',' && i < b->used - 1; i++, s++);
244
			if (start == s) break; /* empty fields are skipped */
244 245
			end = s - 1;
245 246

  
246
			for (; (*end == ' ' || *end == '\t') && end > start; end--);
247
			for (; end > start && (*end == ' ' || *end == '\t'); end--);
248
			if (start == end) break; /* empty fields are skipped */
247 249

  
248 250
			if (NULL == (ds = (data_string *)array_get_unused_element(vals, TYPE_STRING))) {
249 251
				ds = data_string_init();
branches/lighttpd-1.4.x/NEWS
9 9
  * [mod_compress] fix handling if etags are disabled but cache-dir is set - may lead to double response
10 10
  * disable mmap by default (fixes #2391)
11 11
  * buffer_caseless_compare: always convert letters to lowercase to get transitive results, fixing array lookups (fixes #2405)
12
  * Fix handling of empty header list entries in http_request_split_value, fixing invalid read in valgrind (fixes #2413)
12 13

  
13 14
- 1.4.30 - 2011-12-18
14 15
  * Always use our 'own' md5 implementation, fixes linking issues on MacOS (fixes #2331)

Also available in: Unified diff