From 8590b62b06591b27e66c3348b66bb0d93d79daf6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Wilfried=20G=C3=B6esgens?= Date: Mon, 15 Sep 2008 19:11:12 +0000 Subject: [PATCH] * fix /webcit/ URL reparsing --- webcit/context_loop.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/webcit/context_loop.c b/webcit/context_loop.c index bdf17054d..932bb7c27 100644 --- a/webcit/context_loop.c +++ b/webcit/context_loop.c @@ -446,10 +446,10 @@ void context_loop(int *sock) StrBufCutLeft(ReqLine, StrLength(ReqType) + 1); StrBufCutRight(ReqLine, StrLength(HTTPVersion) + 1); - if ((StrLength(ReqLine) > 10) && - (ptr = strstr(ChrPtr(ReqLine), "/webcit "), /*< Handle "/webcit" */ + if ((StrLength(ReqLine) >= 7) && + (ptr = strstr(ChrPtr(ReqLine), "/webcit"), /*< Handle "/webcit" */ (ptr != NULL))) { - StrBufCutLeft(ReqLine, 6); + StrBufCutLeft(ReqLine, 7); } /** Begin parsing the request. */ -- 2.30.2