X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=webcit%2Fhtml2html.c;h=72356c700bf539566f5baee2cd92b3c74e7372a9;hb=8913a797d8e44247d9bab88fa68c002cbb639e92;hp=35fffd5d2bafc26302274fb967601217d8b2de30;hpb=a648090befbd508f01cc6091e5ad962e6ca38ee6;p=citadel.git diff --git a/webcit/html2html.c b/webcit/html2html.c index 35fffd5d2..72356c700 100644 --- a/webcit/html2html.c +++ b/webcit/html2html.c @@ -386,17 +386,17 @@ void output_html(char *supplied_charset, int treat_as_wiki) { } } else { - /** - * We need to know when we're inside a tag, - * so we don't turn things that look like URL's into - * links, when they're already links - or image sources. - */ - if (*ptr == '<') ++brak; - if (*ptr == '>') --brak; - if (!strncasecmp(ptr, "", 3)) --alevel; converted_msg[output_length] = *ptr++; converted_msg[++output_length] = 0; } + /** + * We need to know when we're inside a tag, + * so we don't turn things that look like URL's into + * links, when they're already links - or image sources. + */ + if (*ptr == '<') ++brak; + if (*ptr == '>') --brak; + if (!strncasecmp(ptr, "", 3)) --alevel; } /** uncomment these two lines to override conversion */