// Output an HTML message, modifying it slightly to make sure it plays nice
// with the rest of our web framework.
//
-// Copyright (c) 2005-2022 by the citadel.org team
+// Copyright (c) 2005-2024 by the citadel.org team
//
-// This program is open source software. Use, duplication, or
-// disclosure is subject to the GNU General Public License v3.
+// This program is open source software. Use, duplication, or disclosure is subject to the GNU General Public License v3.
#include "webcit.h"
// Sanitize and enhance an HTML message for display.
// Also convert weird character sets to UTF-8 if necessary.
// Also fixup img src="cid:..." type inline images to fetch the image
-StrBuf *html2html(const char *supplied_charset, int treat_as_wiki, char *roomname, long msgnum, StrBuf *Source) {
+StrBuf *html2html(const char *charset_in, int treat_as_wiki, char *roomname, long msgnum, StrBuf *Source) {
char buf[SIZ];
char *msg;
char *ptr;
return (NULL);
}
- safestrncpy(charset, supplied_charset, sizeof charset);
+ safestrncpy(charset, charset_in, sizeof charset);
sprintf(new_window, "<a target=\"%s\" href=", TARGET);
content_length = StrLength(Source);
// Output our big pile of markup
StrBufAppendBuf(Target, converted_msg, 0);
- BAIL: // A little trailing vertical whitespace...
+BAIL: // A little trailing vertical whitespace...
StrBufAppendPrintf(Target, "<br>\n");
// Now give back the memory