stagit

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit af5ee76228944b92e51ee8bd3bb60dab2cf1ea9d
parent 75555cd99ee4d5df765f7dd6f0d09f2f925be725
Author: mpizzzle <m@michaelpercival.xyz>
Date:   Fri, 30 Oct 2020 18:06:59 +0000

allowing insertion of non-escaped html characters via preceding backslash

Diffstat:
Mstagit-index.c | 1+
Mstagit.c | 1+
2 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/stagit-index.c b/stagit-index.c @@ -36,6 +36,7 @@ xmlencode(FILE *fp, const char *s, size_t len) for (i = 0; *s && i < len; s++, i++) { switch(*s) { + case '\': fputc(*++s, fp); i++; break; case '<': fputs("&lt;", fp); break; case '>': fputs("&gt;", fp); break; case ''': fputs("&#39;" , fp); break; diff --git a/stagit.c b/stagit.c @@ -365,6 +365,7 @@ xmlencode(FILE *fp, const char *s, size_t len) for (i = 0; *s && i < len; s++, i++) { switch(*s) { + case '\': fputc(*++s, fp); i++; break; case '<': fputs("&lt;", fp); break; case '>': fputs("&gt;", fp); break; case ''': fputs("&#39;", fp); break;