diff options
author | default <nobody@localhost> | 2022-11-18 11:36:13 +0100 |
---|---|---|
committer | default <nobody@localhost> | 2022-11-18 11:36:13 +0100 |
commit | e239d51de1a0158460defc198fe7fbc7f8049b0a (patch) | |
tree | 46f1b23e81b2e3c63a60a6fc736cf0aaaa35de6f | |
parent | 240494c795b512d3c94a2921b9181fc953f78b84 (diff) |
More RSS tweaks.
-rw-r--r-- | html.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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, ">", ">"); /* 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) { |