Ver código fonte

More RSS tweaks.

default 3 anos atrás
pai
commit
e239d51de1
1 arquivos alterados com 3 adições e 1 exclusões
  1. 3 1
      html.c

+ 3 - 1
html.c

@@ -1124,7 +1124,9 @@ 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, '&')) || (v = strchr(title, '<')))
+            if ((v = strchr(title, '<')))
+                *v = '\0';
+            if ((v = strchr(title, '&')))
                 *v = '\0';
 
             if (strlen(title) > 40) {