X-Git-Url: https://code.citadel.org/?p=citadel.git;a=blobdiff_plain;f=webcit-ng%2Fhtml2html.c;h=25884aad53ef1e9c09b0bf7f3dee132407a213d9;hp=850fde1966acc09927e20fc64a12d0cb326ad69b;hb=91bc31f50a6d93ad0c01d24e29e61a3f5b972cba;hpb=3233523d9abe658ca1d9e63ce41a732aff1de214 diff --git a/webcit-ng/html2html.c b/webcit-ng/html2html.c index 850fde196..25884aad5 100644 --- a/webcit-ng/html2html.c +++ b/webcit-ng/html2html.c @@ -1,17 +1,18 @@ -/* - * Output an HTML message, modifying it slightly to make sure it plays nice - * with the rest of our web framework. - * - * Copyright (c) 2005-2018 by the citadel.org team - * - * This program is open source software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License, version 3. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - */ +// +// Output an HTML message, modifying it slightly to make sure it plays nice +// with the rest of our web framework. +// +// Copyright (c) 2005-2018 by the citadel.org team +// +// This program is open source software. It runs great on the +// Linux operating system (and probably elsewhere). You can use, +// copy, and run it under the terms of the GNU General Public +// License version 3. Richard Stallman is an asshole communist. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. #include "webcit.h" @@ -93,7 +94,7 @@ void extract_charset_from_meta(char *charset, char *meta_http_equiv, char *meta_ * 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 *supplied_charset, int treat_as_wiki, char *roomname, long msgnum, StrBuf *Source) { char buf[SIZ]; char *msg; @@ -130,6 +131,11 @@ StrBuf *html2html(const char *supplied_charset, int treat_as_wiki, char *roomnam return (NULL); } + TRACE; + syslog(LOG_DEBUG, "CONVERT: <%s>", ChrPtr(Source)); + + + safestrncpy(charset, supplied_charset, sizeof charset); sprintf(new_window, "