From: Art Cancro Date: Wed, 8 Aug 2012 22:14:21 +0000 (-0400) Subject: When logging invalid url_key, do not include the attempted key X-Git-Tag: v8.20~256 X-Git-Url: https://code.citadel.org/?p=citadel.git;a=commitdiff_plain;h=32b7b8ba5ec4d8c4af7ca65f0db33f7fd1288ce1 When logging invalid url_key, do not include the attempted key --- diff --git a/webcit/paramhandling.c b/webcit/paramhandling.c index a2dcca2f3..d3c9507b2 100644 --- a/webcit/paramhandling.c +++ b/webcit/paramhandling.c @@ -51,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; } @@ -59,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; } @@ -371,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; }