diff options
| author | 2022-11-20 05:33:42 +0100 | |
|---|---|---|
| committer | 2022-11-20 05:33:42 +0100 | |
| commit | 5882ed15de8bf52d79e3a42beee61da03a42586e (patch) | |
| tree | 9568af0376f5c1b2711ed089f10da433129b6365 /html.c | |
| parent | More RSS tweaks. (diff) | |
| download | snac2-5882ed15de8bf52d79e3a42beee61da03a42586e.tar.gz snac2-5882ed15de8bf52d79e3a42beee61da03a42586e.tar.xz snac2-5882ed15de8bf52d79e3a42beee61da03a42586e.zip | |
More RSS tweaks.
Diffstat (limited to 'html.c')
| -rw-r--r-- | html.c | 6 |
1 files changed, 3 insertions, 3 deletions
| @@ -1137,13 +1137,13 @@ int html_get_handler(d_char *req, char *q_path, char **body, int *b_size, char * | |||
| 1137 | content = xs_replace_i(content, ">", ">"); | 1137 | content = xs_replace_i(content, ">", ">"); |
| 1138 | 1138 | ||
| 1139 | if (strlen(title) > 40) | 1139 | if (strlen(title) > 40) |
| 1140 | title[i = 40] = '\0'; | 1140 | title = xs_crop(title, 0, i = 40); |
| 1141 | 1141 | ||
| 1142 | if ((v = strchr(title, '<'))) | 1142 | if ((v = strchr(title, '<'))) |
| 1143 | title[i = (v - title)] = '\0'; | 1143 | title = xs_crop(title, 0, i = (v - title)); |
| 1144 | 1144 | ||
| 1145 | if ((v = strchr(title, '&'))) | 1145 | if ((v = strchr(title, '&'))) |
| 1146 | title[i = (v - title)] = '\0'; | 1146 | title = xs_crop(title, 0, i = (v - title)); |
| 1147 | 1147 | ||
| 1148 | if (i != -1) | 1148 | if (i != -1) |
| 1149 | title = xs_str_cat(xs_strip(title), "..."); | 1149 | title = xs_str_cat(xs_strip(title), "..."); |