diff options
| author | 2022-11-18 11:32:05 +0100 | |
|---|---|---|
| committer | 2022-11-18 11:32:05 +0100 | |
| commit | 240494c795b512d3c94a2921b9181fc953f78b84 (patch) | |
| tree | c1e99390959d4ac603c1de35ce6335ca11b52907 | |
| parent | Added rss on output. (diff) | |
| download | snac2-240494c795b512d3c94a2921b9181fc953f78b84.tar.gz snac2-240494c795b512d3c94a2921b9181fc953f78b84.tar.xz snac2-240494c795b512d3c94a2921b9181fc953f78b84.zip | |
More RSS cropping.
| -rw-r--r-- | html.c | 2 |
1 files changed, 1 insertions, 1 deletions
| @@ -1124,7 +1124,7 @@ 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, '<')) != NULL) | 1127 | if ((v = strchr(title, '&')) || (v = strchr(title, '<'))) |
| 1128 | *v = '\0'; | 1128 | *v = '\0'; |
| 1129 | 1129 | ||
| 1130 | if (strlen(title) > 40) { | 1130 | if (strlen(title) > 40) { |