Remove the intermediate buffer in serv_puts()
[citadel.git] / webcit / webcit.c
index c6677b285e1d0f8d24ac59ca7238fb56dae1fc22..0368e6429cc27bfde7db3f3c00b6a7425906ad39 100644 (file)
@@ -1209,7 +1209,7 @@ void session_loop(struct httprequest *req)
        }
 
        /* If the client sent a nonce that is incorrect, kill the request. */
-       if (!strcasecmp(request_method, "POST")) {
+       if (strlen(bstr("nonce")) > 0) {
                lprintf(9, "Comparing supplied nonce %s to session nonce %ld\n", 
                        bstr("nonce"), WC->nonce);
                if (atoi(bstr("nonce")) != WC->nonce) {