From: Hiltjo Posthuma Date: Tue, 16 Nov 2021 10:44:23 +0000 (+0100) Subject: encode the name, it could contain XML entities X-Git-Url: https://git.atheridis.org/?a=commitdiff_plain;h=961cf0f9d86e1e043d80398e4a71d218c28123a0;p=forks%2Fstagit.git encode the name, it could contain XML entities Like ", which would unquote the attribute value. Crazy but true. --- diff --git a/stagit.c b/stagit.c index d8fbc64..d637691 100644 --- 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, "\n\n", relpath); - fprintf(fp, "\n", - name, relpath); - fprintf(fp, "\n", - name, relpath); + fputs("\n", relpath); + fputs("\n", relpath); fprintf(fp, "\n", relpath); fputs("\n\n
", fp); fprintf(fp, "\"\"",