diff options
| author | Sam Varshavchik | 2019-05-17 07:03:18 -0400 |
|---|---|---|
| committer | Sam Varshavchik | 2019-05-17 07:03:18 -0400 |
| commit | 6dc8ed011166cdf81d9a613399bb88ef15d05730 (patch) | |
| tree | 9c19c3006a38cbedb2d99c5dc44cff6a19c34c96 | |
| parent | f41beac026d5599b606c72b1911db2d1893d1868 (diff) | |
| download | courier-libs-6dc8ed011166cdf81d9a613399bb88ef15d05730.tar.bz2 | |
Fix quoting of HTTP headers of error messages.
| -rw-r--r-- | cgi/cgidaemon.c | 4 | ||||
| -rw-r--r-- | sqwebmail/ChangeLog | 5 |
2 files changed, 7 insertions, 2 deletions
diff --git a/cgi/cgidaemon.c b/cgi/cgidaemon.c index fa42cbf..25bf01a 100644 --- a/cgi/cgidaemon.c +++ b/cgi/cgidaemon.c @@ -42,7 +42,7 @@ static void err(const char *func, const char *msg) { cginocache(); - printf("Content-Type: text/html; charset='utf-8'\n\n" + printf("Content-Type: text/html; charset=\"utf-8\"\n\n" "<html><head><title>Internal error</title></head>\n" "<body><h1>Internal Error</h1>\n" "<p>The webmail system is temporarily unavailable. An error" @@ -56,7 +56,7 @@ static void connect_err(const char *func) { cginocache(); - printf("Content-Type: text/html; charset='us-ascii'\n\n" + printf("Content-Type: text/html; charset=\"us-ascii\"\n\n" "<html><head><title>System unavailable</title></head>\n" "<body><h1>System unavailable</h1>\n" "<p>The web page you're trying to access is not available" diff --git a/sqwebmail/ChangeLog b/sqwebmail/ChangeLog index ca48b5b..1cb24d5 100644 --- a/sqwebmail/ChangeLog +++ b/sqwebmail/ChangeLog @@ -1,3 +1,8 @@ +2019-05-17 Sam Varshavchik <mrsam@courier-mta.com> + + * cgi/cgidaemon.c (connect_err): Fix quoting in HTTP headers for + error messages. + 6.0.1 * Typo correction. |
