diff --git a/src/plugins/http/src/httpHandle.c b/src/plugins/http/src/httpHandle.c index 5f89940a66300eebe75e0f3d3e48435703f5487f..0d9b0ea02517b801b37ee11aa8e8c044419544d4 100644 --- a/src/plugins/http/src/httpHandle.c +++ b/src/plugins/http/src/httpHandle.c @@ -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;