Sfoglia il codice sorgente

More RSS cropping.

default 3 anni fa
parent
commit
240494c795
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      html.c

+ 1 - 1
html.c

@@ -1124,7 +1124,7 @@ int html_get_handler(d_char *req, char *q_path, char **body, int *b_size, char *
             content = xs_replace_i(content, ">", ">");
 
             /* cut title in the first tag start */
-            if ((v = strchr(title, '<')) != NULL)
+            if ((v = strchr(title, '&')) || (v = strchr(title, '<')))
                 *v = '\0';
 
             if (strlen(title) > 40) {