4cfc3d3eb5486c004765de17570c548ea6c388d5 galt Thu Jul 28 18:13:22 2016 -0700 Fixes XSS for the early warning and abort messages. These were detected by system admins in Japan diff --git src/inc/htmshell.h src/inc/htmshell.h index 277a7b0..b94081a 100644 --- src/inc/htmshell.h +++ src/inc/htmshell.h @@ -22,30 +22,33 @@ #if defined(__GNUC__) __attribute__((format(printf, 1, 2))) #endif ; void htmlVaParagraph(char *line, va_list args); /* Print a line in it's own paragraph. */ void htmlCenterParagraph(char *line, ...) /* Center a line in it's own paragraph. */ #if defined(__GNUC__) __attribute__((format(printf, 1, 2))) #endif ; +void htmlVaEncodeErrorText(char *format, va_list args); +/* Write an error message encoded against XSS. */ + void htmlHorizontalLine(); /* Print a horizontal line. */ void htmlNbSpaces(int count); /* Print a number of non-breaking spaces. */ void htmHorizontalLine(FILE *f); /* Print a horizontal line. */ void htmTextOut(FILE *f, char *s); /* Print out string to file, if necessary replacing > with > and the like */ void htmlTextOut(char *s); /* Print out string, if necessary replacing > with > and the like */