X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=webcit%2Fparamhandling.c;h=8b36c277e39d2463049a6ddb35a276e19a7da85f;hb=06189cea8146e80cbb594c3ee0facb462c8953c1;hp=86d9d1aa438489787d022471e29987cfa5f1a375;hpb=6d5f6d1b055eb2ac1cb9adf601672ad9f153a6f1;p=citadel.git diff --git a/webcit/paramhandling.c b/webcit/paramhandling.c index 86d9d1aa4..8b36c277e 100644 --- a/webcit/paramhandling.c +++ b/webcit/paramhandling.c @@ -308,7 +308,7 @@ void upload_handler(char *name, char *filename, char *partnum, char *disp, long keylen; #ifdef DEBUG_URLSTRINGS - lprintf(9, "upload_handler() name=%s, type=%s, len=%d\n", name, cbtype, length); + lprintf(9, "\033[31mupload_handler() name=%s, type=%s, len=%d\033[0m\n", name, cbtype, length); #endif if (WCC->Hdr->urlstrings == NULL) WCC->Hdr->urlstrings = NewHash(1, NULL); @@ -340,13 +340,15 @@ void upload_handler(char *name, char *filename, char *partnum, char *disp, #endif } - /** Uploaded files */ + /* Uploaded files */ if ( (length > 0) && (!IsEmptyStr(cbtype)) ) { WCC->upload = NewStrBufPlain(content, length); WCC->upload_length = length; WCC->upload_filename = NewStrBufPlain(filename, -1); - safestrncpy(WCC->upload_content_type, cbtype, - sizeof(WC->upload_content_type)); + safestrncpy(WCC->upload_content_type, cbtype, sizeof(WC->upload_content_type)); +#ifdef DEBUG_URLSTRINGS + lprintf(9, "File: <%s> len: [%ld]\n", filename, length); +#endif }