X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=webcit%2Fhtml2html.c;h=3122c75ac45f23c97ada09c15770a635d81ce2d4;hb=a34ab2fe2c99fda491eb8ae91371774a32c2612e;hp=ca2404385505ff14f1890d9d4114959e6eec9221;hpb=039ccdbb1a9d4124f6c1a03c29cbdd4536112019;p=citadel.git diff --git a/webcit/html2html.c b/webcit/html2html.c index ca2404385..3122c75ac 100644 --- a/webcit/html2html.c +++ b/webcit/html2html.c @@ -59,7 +59,7 @@ void extract_charset_from_meta(char *charset, char *meta_http_equiv, char *meta_ if (!ptr) return; safestrncpy(buf, ++ptr, sizeof buf); - striplt(buf); + string_trim(buf); if (!strncasecmp(buf, "charset=", 8)) { strcpy(charset, &buf[8]); @@ -76,7 +76,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); } } @@ -187,7 +187,7 @@ void output_html(const char *supplied_charset, int treat_as_wiki, int msgnum, St 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, ' ');