Introduction
Introduction Statistics Contact Development Disclaimer Help
encode the name, it could contain XML entities - stagit - static git page gener…
git clone git://git.codemadness.org/stagit
Log
Files
Refs
README
LICENSE
---
commit 961cf0f9d86e1e043d80398e4a71d218c28123a0
parent 1b6a24c893866a604d9b7bc425f9b23706f39912
Author: Hiltjo Posthuma <[email protected]>
Date: Tue, 16 Nov 2021 11:44:23 +0100
encode the name, it could contain XML entities
Like ", which would unquote the attribute value. Crazy but true.
Diffstat:
M stagit.c | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
---
diff --git a/stagit.c b/stagit.c
@@ -480,10 +480,12 @@ writeheader(FILE *fp, const char *title)
fputs(" - ", fp);
xmlencode(fp, description, strlen(description));
fprintf(fp, "</title>\n<link rel=\"icon\" type=\"image/png\" href=\"%s…
- fprintf(fp, "<link rel=\"alternate\" type=\"application/atom+xml\" tit…
- name, relpath);
- fprintf(fp, "<link rel=\"alternate\" type=\"application/atom+xml\" tit…
- name, relpath);
+ fputs("<link rel=\"alternate\" type=\"application/atom+xml\" title=\""…
+ xmlencode(fp, name, strlen(name));
+ fprintf(fp, " Atom Feed\" href=\"%satom.xml\" />\n", relpath);
+ fputs("<link rel=\"alternate\" type=\"application/atom+xml\" title=\""…
+ xmlencode(fp, name, strlen(name));
+ fprintf(fp, " Atom Feed (tags)\" href=\"%stags.xml\" />\n", relpath);
fprintf(fp, "<link rel=\"stylesheet\" type=\"text/css\" href=\"%sstyle…
fputs("</head>\n<body>\n<table><tr><td>", fp);
fprintf(fp, "<a href=\"../%s\"><img src=\"%slogo.png\" alt=\"\" width=…
You are viewing proxied material from codemadness.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.