summaryrefslogtreecommitdiff
path: root/html.c
diff options
context:
space:
mode:
authordefault <nobody@localhost>2022-11-18 11:32:05 +0100
committerdefault <nobody@localhost>2022-11-18 11:32:05 +0100
commit240494c795b512d3c94a2921b9181fc953f78b84 (patch)
treec1e99390959d4ac603c1de35ce6335ca11b52907 /html.c
parentc827b2641b1c696bcc5334e1de88c41a643b68c4 (diff)
More RSS cropping.
Diffstat (limited to 'html.c')
-rw-r--r--html.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/html.c b/html.c
index de37072..947ba76 100644
--- 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, ">", "&gt;");
/* 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) {