X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=webcit%2Fwebcit.c;h=dcef892e63f61d50ca48e42036c09b7f512ecf78;hb=f4f1153a964cf70beeafb637d60b3827f327418b;hp=31d5197b6a8934b0498fd1bd9d180495bda4bd94;hpb=cef995d5a1adbe0286d85cc3b2f597aeb3590835;p=citadel.git diff --git a/webcit/webcit.c b/webcit/webcit.c index 31d5197b6..dcef892e6 100644 --- a/webcit/webcit.c +++ b/webcit/webcit.c @@ -805,7 +805,7 @@ void session_loop(HashList *HTTPHeaders, } /* If the client sent a nonce that is incorrect, kill the request. */ - if (strlen(bstr("nonce")) > 0) { + if (havebstr("nonce")) { lprintf(9, "Comparing supplied nonce %s to session nonce %ld\n", bstr("nonce"), WCC->nonce); if (ibstr("nonce") != WCC->nonce) {