d26a087dff59f4e4493e4ce2cf7d5b1ae145fdf3 galt Thu Aug 18 12:15:52 2016 -0700 adding back commits reverted earlier that got lost in the final merge. XSS fixes. diff --git src/inc/htmshell.h src/inc/htmshell.h index d150990..6e1ff29 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 */