X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=webcit-ng%2Fhtml2html.c;h=f4f9e077e18df5370ab3a00c19860a1efec0411f;hb=fd396aeb6d3e10be928dd899ae228147b1728fb3;hp=25884aad53ef1e9c09b0bf7f3dee132407a213d9;hpb=91bc31f50a6d93ad0c01d24e29e61a3f5b972cba;p=citadel.git diff --git a/webcit-ng/html2html.c b/webcit-ng/html2html.c index 25884aad5..f4f9e077e 100644 --- a/webcit-ng/html2html.c +++ b/webcit-ng/html2html.c @@ -2,12 +2,12 @@ // 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 +// Copyright (c) 2005-2020 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. +// 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 @@ -122,20 +122,11 @@ StrBuf *html2html(const char *supplied_charset, int treat_as_wiki, char *roomnam size_t obuflen; /* Length of output buffer */ char *osav; /* Saved pointer to output buffer */ - if (msg == NULL) { - return (NULL); - } - StrBuf *Target = NewStrBuf(); if (Target == NULL) { return (NULL); } - TRACE; - syslog(LOG_DEBUG, "CONVERT: <%s>", ChrPtr(Source)); - - - safestrncpy(charset, supplied_charset, sizeof charset); sprintf(new_window, "