X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=webcit-ng%2Fserver%2Fcaldav_reports.c;h=1031a46859d80cfba4fc8331aef8ab1949d91638;hb=d2da635affb615a8687d24ad949b102a218c0762;hp=edd0b4558cffc0742568fe82bf73885cca4b9c80;hpb=3ddecda78a842d669c632d42cc81d987f031d882;p=citadel.git diff --git a/webcit-ng/server/caldav_reports.c b/webcit-ng/server/caldav_reports.c index edd0b4558..1031a4685 100644 --- a/webcit-ng/server/caldav_reports.c +++ b/webcit-ng/server/caldav_reports.c @@ -256,6 +256,7 @@ void caldav_report(struct http_transaction *h, struct ctdlsession *c) { StrBuf *ThisHref = NewStrBuf(); const char *pvset = NULL; while (StrBufExtract_NextToken(ThisHref, crp.Hrefs, &pvset, '|') >= 0) { + StrBufTrim(ThisHref); // remove leading/trailing whitespace from the href caldav_response(h, c, ReportOut, ThisHref); } FreeStrBuf(&ThisHref); @@ -263,7 +264,7 @@ void caldav_report(struct http_transaction *h, struct ctdlsession *c) { crp.Hrefs = NULL; } - StrBufAppendPrintf(ReportOut, "\n"); // End the REPORT. + StrBufAppendPrintf(ReportOut, "\n"); // End the REPORT. add_response_header(h, strdup("Content-type"), strdup("text/xml")); h->response_code = 207;