diff options
author | Hiltjo Posthuma <hiltjo@codemadness.org> | 2015-06-21 00:37:29 +0200 |
---|---|---|
committer | Hiltjo Posthuma <hiltjo@codemadness.org> | 2015-06-21 00:37:29 +0200 |
commit | d3933ef3d7f84e3bc85b66025b4822ebbd753ed8 (patch) | |
tree | ed08672fc316368bacf604035b2e2e6fb15dcf94 | |
parent | 7bd3894befb8033ebdc252103fd0d689e655f127 (diff) |
sfeed_html, sfeed_frames: escape name
-rw-r--r-- | sfeed_frames.c | 3 | ||||
-rw-r--r-- | sfeed_html.c | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/sfeed_frames.c b/sfeed_frames.c index 73c601d..da06b8b 100644 --- a/sfeed_frames.c +++ b/sfeed_frames.c @@ -211,7 +211,8 @@ main(int argc, char *argv[]) fputs("\" target=\"items\">", fpmenu); if(f->totalnew > 0) fputs("<b><u>", fpmenu); - fprintf(fpmenu, "%s (%lu)", f->name, f->totalnew); + printxmlencoded(f->name, fpmenu); + fprintf(fpmenu, "(%lu)", f->totalnew); if(f->totalnew > 0) fputs("</u></b>", fpmenu); fputs("</a><br/>\n", fpmenu); diff --git a/sfeed_html.c b/sfeed_html.c index c123411..e81e6c4 100644 --- a/sfeed_html.c +++ b/sfeed_html.c @@ -129,7 +129,8 @@ main(int argc, char *argv[]) fputs("\">", stdout); if(f->totalnew > 0) fputs("<b><u>", stdout); - fprintf(stdout, "%s (%lu)", f->name, f->totalnew); + printxmlencoded(f->name, stdout); + fprintf(stdout, "(%lu)", f->totalnew); if(f->totalnew > 0) fputs("</u></b>", stdout); fputs("</a></li>\n", stdout); |