Check-in [b16389c222]
Overview
Comment:Updated to terminate malformed requests without newlines
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:b16389c2220cc4f67a78dc2126511e09a86d8eea
User & Date: rkeene on 2014-02-12 19:19:26
Other Links: manifest | tags
Context
2014-02-18
03:45
Fixed call to wrong function for finding end of HTTP path check-in: 773268af3c user: rkeene tags: trunk
2014-02-12
19:19
Updated to terminate malformed requests without newlines check-in: b16389c222 user: rkeene tags: trunk
17:56
Post release version increment check-in: 3a2967949a user: rkeene tags: trunk
Changes

Modified filed.c from [16407cc723] to [4e1ed3be61].

   657    657   	}
   658    658   
   659    659   	*buffer = '\0';
   660    660   	buffer++;
   661    661   
   662    662   	path = buffer;
   663    663   
   664         -	buffer = strchr(buffer, ' ');
          664  +	/* Terminate path component */
          665  +	buffer = strstr(buffer, "\r\n ");
   665    666   	if (buffer != NULL) {
   666    667   		*buffer = '\0';
   667    668   		buffer++;
   668    669   	}
   669    670   
   670    671   	/* We only handle the "GET" and "HEAD' methods */
   671    672   	if (strcasecmp(method, "head") != 0) {