]> code.citadel.org Git - citadel.git/blobdiff - webcit-ng/server/html2html.c
Grammar change in the license declaration.
[citadel.git] / webcit-ng / server / html2html.c
index b6dadc35eeec1397d48282fe31cc88dda72f3c74..f04ddef7f7eda0acd237b572668990853b5e058d 100644 (file)
@@ -1,11 +1,10 @@
-//
 // 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
 //
 // This program is open source software.  Use, duplication, or
-// disclosure are subject to the GNU General Public License v3.
+// disclosure is subject to the GNU General Public License v3.
 
 #include "webcit.h"
 
@@ -52,7 +51,7 @@ void extract_charset_from_meta(char *charset, char *meta_http_equiv, char *meta_
                return;
 
        safestrncpy(buf, ++ptr, sizeof buf);
-       striplt(buf);
+       string_trim(buf);
        if (!strncasecmp(buf, "charset=", 8)) {
                strcpy(charset, &buf[8]);
 
@@ -68,7 +67,7 @@ void extract_charset_from_meta(char *charset, char *meta_http_equiv, char *meta_
                // Remove wandering punctuation
                if ((ptr = strchr(charset, '\"')))
                        *ptr = 0;
-               striplt(charset);
+               string_trim(charset);
        }
 }
 
@@ -151,7 +150,7 @@ StrBuf *html2html(const char *supplied_charset, int treat_as_wiki, char *roomnam
                                meta = malloc(meta_length + 1);
                                safestrncpy(meta, meta_start, meta_length);
                                meta[meta_length] = 0;
-                               striplt(meta);
+                               string_trim(meta);
                                if (!strncasecmp(meta, "HTTP-EQUIV=", 11)) {
                                        meta_http_equiv = strdup(&meta[11]);
                                        spaceptr = strchr(meta_http_equiv, ' ');