projects
/
citadel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
d68f412
)
When logging an invalid url_key include the browser host in the message, allowing...
author
Art Cancro
<ajc@uncensored.citadel.org>
Sat, 25 Aug 2012 20:06:15 +0000
(16:06 -0400)
committer
Art Cancro
<ajc@uncensored.citadel.org>
Sat, 25 Aug 2012 20:06:15 +0000
(16:06 -0400)
webcit/paramhandling.c
patch
|
blob
|
history
diff --git
a/webcit/paramhandling.c
b/webcit/paramhandling.c
index ac8585b50b517c6eedb1b1cbcaabef997b98f81a..3507a9a76bc57525c0ac2942f018894d7d609414 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, "invalid url_key
"
);
+ syslog(1, "invalid url_key
from %s", ChrPtr(WCC->Hdr->HR.browser_host)
);
return;
}
return;
}
@@
-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, "invalid url_key
"
);
+ syslog(1, "invalid url_key
from %s", ChrPtr(WCC->Hdr->HR.browser_host)
);
free(u);
return;
}
free(u);
return;
}
@@
-369,9
+369,10
@@
void upload_handler(char *name, char *filename, char *partnum, char *disp,
void PutBstr(const char *key, long keylen, StrBuf *Value)
{
urlcontent *u;
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
"
);
+ syslog(1, "invalid url_key
from %s", ChrPtr(WCC->Hdr->HR.browser_host)
);
FreeStrBuf(&Value);
return;
}
FreeStrBuf(&Value);
return;
}