From 4e271f5e923fc558c9f4eb56fb0bbae46ad8b525 Mon Sep 17 00:00:00 2001 From: Art Cancro Date: Tue, 5 Jul 2011 11:57:18 -0400 Subject: [PATCH] Revert "Ugly hack to fix wiki history broken by the 'message xxx is not in this room' security check" This reverts commit b63ef8c45ce751cb78dc4a9061a31b5448ec9049. --- citadel/modules/wiki/serv_wiki.c | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/citadel/modules/wiki/serv_wiki.c b/citadel/modules/wiki/serv_wiki.c index 5db43b33f..959601315 100644 --- a/citadel/modules/wiki/serv_wiki.c +++ b/citadel/modules/wiki/serv_wiki.c @@ -583,18 +583,6 @@ void wiki_rev(char *pagename, char *rev, char *operation) msg->cm_fields['A'] = strdup("Citadel"); CtdlCreateRoom(wwm, 5, "", 0, 1, 1, VIEW_BBS); /* Not an error if already exists */ msgnum = CtdlSubmitMsg(msg, NULL, wwm, 0); /* Store the revision here */ - - /* - * WARNING: VILE SLEAZY HACK - * This will avoid the 'message xxx is not in this room' security error, - * but only if the client fetches the message we just generated immediately - * without first trying to perform other fetch operations. - */ - if (CC->cached_msglist != NULL) free(CC->cached_msglist); - CC->cached_num_msgs = 1; - CC->cached_msglist = malloc(sizeof(long)); - CC->cached_msglist[0] = msgnum; - } else if (!strcasecmp(operation, "revert")) { snprintf(timestamp, sizeof timestamp, "%ld", time(NULL)); -- 2.39.2