REPORT namespace output uses declaration defined on top
authorArt Cancro <ajc@citadel.org>
Wed, 27 Mar 2024 19:43:06 +0000 (12:43 -0700)
committerArt Cancro <ajc@citadel.org>
Wed, 27 Mar 2024 19:46:13 +0000 (12:46 -0700)
webcit-ng/server/caldav_reports.c

index 1bb8b85bba93995957bbb97befbb5a80f7cd6481..49d1fe8d03f4ca7a07d892e7a5864f337cdaa10b 100644 (file)
@@ -484,11 +484,8 @@ void caldav_report(struct http_transaction *h, struct ctdlsession *c) {
        syslog(LOG_DEBUG, "CalDAV REPORT type is: %d", crp.report_type);
        StrBuf *ReportOut = NewStrBuf();
        StrBufAppendPrintf(ReportOut,
-               "<?xml version=\"1.0\" encoding=\"utf-8\"?>"
-               "<D:multistatus "
-               "xmlns:D=\"DAV:\" "
-               "xmlns:C=\"urn:ietf:params:xml:ns:caldav\""
-               ">"
+               "<?xml version=\"1.0\" encoding=\"utf-8\"?><D:multistatus xmlns:D=\"DAV:\" xmlns:C=\"%s\">",
+               CALDAV
        );
 
        // RFC4791 7.8 "calendar-query" REPORT - Client will send a lot of search criteria.