summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar default2022-11-18 11:36:13 +0100
committerGravatar default2022-11-18 11:36:13 +0100
commite239d51de1a0158460defc198fe7fbc7f8049b0a (patch)
tree46f1b23e81b2e3c63a60a6fc736cf0aaaa35de6f
parentMore RSS cropping. (diff)
downloadpenes-snac2-e239d51de1a0158460defc198fe7fbc7f8049b0a.tar.gz
penes-snac2-e239d51de1a0158460defc198fe7fbc7f8049b0a.tar.xz
penes-snac2-e239d51de1a0158460defc198fe7fbc7f8049b0a.zip
More RSS tweaks.
-rw-r--r--html.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/html.c b/html.c
index 947ba76..8f229b9 100644
--- a/html.c
+++ b/html.c
@@ -1124,7 +1124,9 @@ int html_get_handler(d_char *req, char *q_path, char **body, int *b_size, char *
1124 content = xs_replace_i(content, ">", ">"); 1124 content = xs_replace_i(content, ">", ">");
1125 1125
1126 /* cut title in the first tag start */ 1126 /* cut title in the first tag start */
1127 if ((v = strchr(title, '&')) || (v = strchr(title, '<'))) 1127 if ((v = strchr(title, '<')))
1128 *v = '\0';
1129 if ((v = strchr(title, '&')))
1128 *v = '\0'; 1130 *v = '\0';
1129 1131
1130 if (strlen(title) > 40) { 1132 if (strlen(title) > 40) {