X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=webcit-ng%2Fserver%2Fhtml2html.c;fp=webcit-ng%2Fserver%2Fhtml2html.c;h=8f0b4659d8477e638739cc0fdcda7498da984ad5;hb=fc3a564c7bba86a29503b39bdd8512801116e70e;hp=d99877c89fd572edae3d24935d9448afaa097f95;hpb=3292f7f60e2f42173b0b233e019ddc0df72d38fa;p=citadel.git diff --git a/webcit-ng/server/html2html.c b/webcit-ng/server/html2html.c index d99877c89..8f0b4659d 100644 --- a/webcit-ng/server/html2html.c +++ b/webcit-ng/server/html2html.c @@ -1,7 +1,7 @@ // 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. @@ -82,7 +82,7 @@ void extract_charset_from_meta(char *charset, char *meta_http_equiv, char *meta_ // 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; @@ -114,7 +114,7 @@ StrBuf *html2html(const char *supplied_charset, int treat_as_wiki, char *roomnam return (NULL); } - safestrncpy(charset, supplied_charset, sizeof charset); + safestrncpy(charset, charset_in, sizeof charset); sprintf(new_window, "