commit 240494c795b512d3c94a2921b9181fc953f78b84
parent c827b2641b1c696bcc5334e1de88c41a643b68c4
Author: default <nobody@localhost>
Date: Fri, 18 Nov 2022 11:32:05 +0100
More RSS cropping.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/html.c b/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) {