From 09b30e37b075f1f2aa9c50dab11a9ab8423b80ce Mon Sep 17 00:00:00 2001 From: Art Cancro Date: Wed, 19 Jan 2011 11:32:02 -0500 Subject: [PATCH] ajax_servcmd() logging now displays the g_cmd being attempted. This is in an attempt to debug the b0rken message delete in the mailbox view. Also fixed a format string compiler warning. --- webcit/webcit.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/webcit/webcit.c b/webcit/webcit.c index 943b185df..93dad13cf 100644 --- a/webcit/webcit.c +++ b/webcit/webcit.c @@ -406,6 +406,7 @@ void ajax_servcmd(void) char *junk; size_t len; + syslog(LOG_DEBUG, "ajax_servcmd() gcmd=\"%s\"\n", bstr("g_cmd") ); begin_ajax_response(); Buf = NewStrBuf(); serv_puts(bstr("g_cmd")); @@ -681,8 +682,9 @@ void session_loop(void) /* If the client sent a nonce that is incorrect, kill the request. */ if (havebstr("nonce")) { - syslog(9, "Comparing supplied nonce %s to session nonce %ld\n", - bstr("nonce"), WCC->nonce); + syslog(9, "Comparing supplied nonce %s to session nonce %d\n", + bstr("nonce"), WCC->nonce + ); if (ibstr("nonce") != WCC->nonce) { syslog(9, "Ignoring request with mismatched nonce.\n"); hprintf("HTTP/1.1 404 Security check failed\r\n"); -- 2.30.2