projects
/
citadel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
8b0fce8
)
When logging invalid url_key, do not include the attempted key
author
Art Cancro
<ajc@uncensored.citadel.org>
Wed, 8 Aug 2012 22:14:21 +0000
(18:14 -0400)
committer
Wilfried Goesgens
<dothebart@citadel.org>
Tue, 21 Aug 2012 22:30:16 +0000
(
00:30
+0200)
webcit/paramhandling.c
patch
|
blob
|
history
diff --git
a/webcit/paramhandling.c
b/webcit/paramhandling.c
index a2dcca2f368f9efe1d0e8629c9b19cc58f5764ec..d3c9507b2aa7a6b91fbc87639e50c8139353889d 100644
(file)
--- 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)) {
}
keylen = aptr - up - 1; /* -1 -> '=' */
if(keylen > sizeof(u->url_key)) {
- syslog(1, "
URLkey to long! [%s]", up
);
+ syslog(1, "
invalid url_key"
);
continue;
}
continue;
}
@@
-59,7
+59,7
@@
void ParseURLParams(StrBuf *url)
memcpy(u->url_key, up, keylen);
u->url_key[keylen] = '\0';
if (keylen < 0) {
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;
}
free(u);
continue;
}
@@
-371,7
+371,7
@@
void PutBstr(const char *key, long keylen, StrBuf *Value)
urlcontent *u;
if(keylen > sizeof(u->url_key)) {
urlcontent *u;
if(keylen > sizeof(u->url_key)) {
- syslog(1, "
URLkey to long! [%s]", key
);
+ syslog(1, "
invalid url_key"
);
FreeStrBuf(&Value);
return;
}
FreeStrBuf(&Value);
return;
}