X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=webcit%2Fparamhandling.c;h=d3c9507b2aa7a6b91fbc87639e50c8139353889d;hb=32b7b8ba5ec4d8c4af7ca65f0db33f7fd1288ce1;hp=453ac052a065408706613c801470dd1767ffa260;hpb=e75e8817291f1504a58c70d721075d82293c9e72;p=citadel.git diff --git a/webcit/paramhandling.c b/webcit/paramhandling.c index 453ac052a..d3c9507b2 100644 --- a/webcit/paramhandling.c +++ b/webcit/paramhandling.c @@ -5,17 +5,11 @@ * * This program is open source software. You can redistribute it and/or * modify it under the terms of the GNU General Public License, version 3. - * - * * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. - * - * - * - * */ #include "webcit.h" @@ -57,7 +51,7 @@ void ParseURLParams(StrBuf *url) } keylen = aptr - up - 1; /* -1 -> '=' */ if(keylen > sizeof(u->url_key)) { - syslog(1, "URLkey to long! [%s]", up); + syslog(1, "invalid url_key"); continue; } @@ -65,7 +59,7 @@ void ParseURLParams(StrBuf *url) memcpy(u->url_key, up, keylen); u->url_key[keylen] = '\0'; if (keylen < 0) { - syslog(1, "URLkey to long! [%s]", up); + syslog(1, "invalid url_key"); free(u); continue; } @@ -377,7 +371,7 @@ void PutBstr(const char *key, long keylen, StrBuf *Value) urlcontent *u; if(keylen > sizeof(u->url_key)) { - syslog(1, "URLkey to long! [%s]", key); + syslog(1, "invalid url_key"); FreeStrBuf(&Value); return; }