commit e239d51

default  ·  2022-11-18 10:36:13 +0000 UTC
parent 240494c
More RSS tweaks.
1 files changed,  +3, -1
M html.c
M html.c
+3, -1
 1@@ -1124,7 +1124,9 @@ int html_get_handler(d_char *req, char *q_path, char **body, int *b_size, char *
 2             content = xs_replace_i(content, ">", ">");
 3 
 4             /* cut title in the first tag start */
 5-            if ((v = strchr(title, '&')) || (v = strchr(title, '<')))
 6+            if ((v = strchr(title, '<')))
 7+                *v = '\0';
 8+            if ((v = strchr(title, '&')))
 9                 *v = '\0';
10 
11             if (strlen(title) > 40) {