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
658
659
660
661
662
663

664
665
666
667
668
669
670
671
	}

	*buffer = '\0';
	buffer++;

	path = buffer;


	buffer = strchr(buffer, ' ');
	if (buffer != NULL) {
		*buffer = '\0';
		buffer++;
	}

	/* We only handle the "GET" and "HEAD' methods */
	if (strcasecmp(method, "head") != 0) {







>
|







657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
	}

	*buffer = '\0';
	buffer++;

	path = buffer;

	/* Terminate path component */
	buffer = strstr(buffer, "\r\n ");
	if (buffer != NULL) {
		*buffer = '\0';
		buffer++;
	}

	/* We only handle the "GET" and "HEAD' methods */
	if (strcasecmp(method, "head") != 0) {