From 18f01e987fd58a2ed1726ff346365a1dff186af1 Mon Sep 17 00:00:00 2001 From: Art Cancro Date: Tue, 6 Oct 2009 03:38:06 +0000 Subject: [PATCH] * Repaired pieces of the wiki engine that have fallen into disrepair. --- webcit/groupdav_propfind.c | 44 +++++++++++++++++-------------- webcit/static/t/edit_message.html | 1 + webcit/wiki.c | 5 ++-- 3 files changed, 27 insertions(+), 23 deletions(-) diff --git a/webcit/groupdav_propfind.c b/webcit/groupdav_propfind.c index 35b08bb9e..2a2821f39 100644 --- a/webcit/groupdav_propfind.c +++ b/webcit/groupdav_propfind.c @@ -6,8 +6,7 @@ * A few notes about our XML output: * * --> Yes, we are spewing tags directly instead of using an XML library. - * If you would like to rewrite this using libxml2, code it up and submit - * a patch. Whining will be summarily ignored. + * Whining about it will be summarily ignored. * * --> XML is deliberately output with no whitespace/newlines between tags. * This makes it difficult to read, but we have discovered clients which @@ -74,7 +73,7 @@ void groupdav_collection_list(void) now = time(NULL); http_datestring(datestring, sizeof datestring, now); - /** + /* * Be rude. Completely ignore the XML request and simply send them * everything we know about. Let the client sort it out. */ @@ -90,8 +89,8 @@ void groupdav_collection_list(void) "" ); - /** - * If the client is requesting the root, show a root node. + /* + * If the client is requesting the root, show a root node. */ if (starting_point == 0) { wprintf(""); @@ -112,8 +111,8 @@ void groupdav_collection_list(void) wprintf(""); } - /** - * If the client is requesting "/groupdav", show a /groupdav subdirectory. + /* + * If the client is requesting "/groupdav", show a /groupdav subdirectory. */ if ((starting_point + WCC->Hdr->HR.dav_depth) >= 1) { wprintf(""); @@ -134,8 +133,8 @@ void groupdav_collection_list(void) wprintf(""); } - /** - * Now go through the list and make it look like a DAV collection + /* + * Now go through the list and make it look like a DAV collection */ serv_puts("LKRA"); serv_getln(buf, sizeof buf); @@ -157,11 +156,13 @@ void groupdav_collection_list(void) * GroupDAV calendar even if the user has switched it to a * Calendar List view. */ - if ((view == VIEW_CALENDAR) || - (view == VIEW_TASKS) || - (view == VIEW_ADDRESSBOOK) || - (view == VIEW_NOTES) || - (view == VIEW_JOURNAL) ) { + if ( (view == VIEW_CALENDAR) || + (view == VIEW_TASKS) || + (view == VIEW_ADDRESSBOOK) || + (view == VIEW_NOTES) || + (view == VIEW_JOURNAL) || + (view == VIEW_WIKI) + ) { is_groupware_collection = 1; } else { @@ -201,6 +202,9 @@ void groupdav_collection_list(void) case VIEW_JOURNAL: wprintf(""); break; + case VIEW_WIKI: + wprintf(""); + break; } wprintf(""); @@ -363,13 +367,13 @@ void groupdav_propfind(void) ); - /** Transmit the collection resource (FIXME check depth and starting point) */ + /* Transmit the collection resource (FIXME check depth and starting point) */ wprintf(""); wprintf(""); - groupdav_identify_host(); - wprintf("/groupdav/"); - urlescputs(ChrPtr(WCC->wc_roomname)); + groupdav_identify_host(); + wprintf("/groupdav/"); + urlescputs(ChrPtr(WCC->wc_roomname)); wprintf(""); wprintf(""); @@ -402,9 +406,9 @@ void groupdav_propfind(void) wprintf(""); wprintf(""); - /** Transmit the collection listing (FIXME check depth and starting point) */ + /* Transmit the collection listing (FIXME check depth and starting point) */ - MsgNum = NewStrBuf (); + MsgNum = NewStrBuf(); serv_puts("MSGS ALL"); StrBuf_ServGetln(MsgNum); diff --git a/webcit/static/t/edit_message.html b/webcit/static/t/edit_message.html index 1c16c1785..43efcff22 100644 --- a/webcit/static/t/edit_message.html +++ b/webcit/static/t/edit_message.html @@ -8,6 +8,7 @@ "> "> +">

"> diff --git a/webcit/wiki.c b/webcit/wiki.c index efc3c8890..adc3fb868 100644 --- a/webcit/wiki.c +++ b/webcit/wiki.c @@ -106,7 +106,7 @@ int wiki_GetParamsGetServerCall(SharedMessageStatus *Stat, long len) { char buf[SIZ]; - sprintf(buf, "wiki?room=%s&page=home", ChrPtr(WC->wc_roomname)); + sprintf(buf, "wiki?room=%s?page=home", ChrPtr(WC->wc_roomname)); http_redirect(buf); return 300; } @@ -122,10 +122,9 @@ InitModule_WIKI NULL, NULL, NULL - ); + ); WebcitAddUrlHandler(HKEY("wiki"), display_wiki_page, 0); - return ; } -- 2.30.2