mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-15 01:55:03 +00:00
More RSS tweaks.
This commit is contained in:
parent
240494c795
commit
e239d51de1
1 changed files with 3 additions and 1 deletions
4
html.c
4
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, ">", ">");
|
content = xs_replace_i(content, ">", ">");
|
||||||
|
|
||||||
/* cut title in the first tag start */
|
/* 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';
|
*v = '\0';
|
||||||
|
|
||||||
if (strlen(title) > 40) {
|
if (strlen(title) > 40) {
|
||||||
|
|
Loading…
Reference in a new issue