snac2

Fork of https://codeberg.org/grunfink/snac2
git clone https://git.inz.fi/snac2
Log | Files | Refs | README | LICENSE

commit e239d51de1a0158460defc198fe7fbc7f8049b0a
parent 240494c795b512d3c94a2921b9181fc953f78b84
Author: default <nobody@localhost>
Date:   Fri, 18 Nov 2022 11:36:13 +0100

More RSS tweaks.

Diffstat:
Mhtml.c | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git 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 * content = xs_replace_i(content, ">", "&gt;"); /* 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) {