X-Git-Url: https://code.citadel.org/?p=citadel.git;a=blobdiff_plain;f=webcit%2Fparamhandling.c;fp=webcit%2Fparamhandling.c;h=9db69f7e78791ab4b7072958b0fa1d696c2626fb;hp=46ac87280e970bb90976bd4dbd4932511c929194;hb=8fa72a64be9fe62fe40dfe8301cbcbca0fc44b79;hpb=b99aec2e8e8626ca3068207d3bfa0f501e5b3cc3 diff --git a/webcit/paramhandling.c b/webcit/paramhandling.c index 46ac87280..9db69f7e7 100644 --- a/webcit/paramhandling.c +++ b/webcit/paramhandling.c @@ -50,7 +50,7 @@ void ParseURLParams(StrBuf *url) bptr++; } keylen = aptr - up - 1; /* -1 -> '=' */ - if(keylen > sizeof(u->url_key)) { + if(keylen >= sizeof(u->url_key)) { syslog(1, "invalid url_key from %s", ChrPtr(WCC->Hdr->HR.browser_host)); return; } @@ -371,7 +371,7 @@ void PutBstr(const char *key, long keylen, StrBuf *Value) urlcontent *u; wcsession *WCC = WC; - if(keylen > sizeof(u->url_key)) { + if(keylen >= sizeof(u->url_key)) { syslog(1, "invalid url_key from %s", ChrPtr(WCC->Hdr->HR.browser_host)); FreeStrBuf(&Value); return;