ajax_servcmd() logging now displays the g_cmd being attempted.
authorArt Cancro <ajc@citadel.org>
Wed, 19 Jan 2011 16:32:02 +0000 (11:32 -0500)
committerWilfried Goesgens <dothebart@citadel.org>
Sun, 4 Sep 2011 14:03:02 +0000 (14:03 +0000)
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

index 943b185df238844eebae02fd98085b290f9873e4..93dad13cf5e64fbfd710f17fa43243f301b4ebbd 100644 (file)
@@ -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");