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 /cgi/cgidaemon.c | |
| parent | f41beac026d5599b606c72b1911db2d1893d1868 (diff) | |
| download | courier-libs-6dc8ed011166cdf81d9a613399bb88ef15d05730.tar.bz2 | |
Fix quoting of HTTP headers of error messages.
Diffstat (limited to 'cgi/cgidaemon.c')
| -rw-r--r-- | cgi/cgidaemon.c | 4 | 
1 files changed, 2 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" | 
