[TD-603] fix #2244 reported by freemine

This commit is contained in:
Shengliang Guan 2020-06-15 08:55:04 +00:00
parent d294e5cd7b
commit a4675f027c
1 changed files with 4 additions and 0 deletions

View File

@ -59,6 +59,10 @@ bool httpParseURL(HttpContext* pContext) {
HttpParser* pParser = &pContext->parser;
char* pSeek;
char* pEnd = strchr(pParser->pLast, ' ');
if (pEnd == NULL) {
return false;
}
if (*pParser->pLast != '/') {
httpSendErrorResp(pContext, HTTP_UNSUPPORT_URL);
return false;