Update of /cvsroot/qmailadmin/qmailadmin
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15327
Modified Files:
Tag: stable-1_2
ChangeLog qmailadmin.c
Log Message:
Include charset in HTTP Content-Type header. [1098891]
Index: qmailadmin.c
===================================================================
RCS file: /cvsroot/qmailadmin/qmailadmin/qmailadmin.c,v
retrieving revision 1.6.2.5
retrieving revision 1.6.2.6
diff -u -d -r1.6.2.5 -r1.6.2.6
--- qmailadmin.c 31 Dec 2004 01:02:40 -0000 1.6.2.5
+++ qmailadmin.c 12 Jan 2005 15:14:27 -0000 1.6.2.6
@@ -283,6 +283,7 @@
{
char *accept_lang;
char *langptr, *qptr;
+ char *charset;
int lang_err;
float maxq, thisq;
@@ -391,7 +392,9 @@
umask(VPOPMAIL_UMASK);
- printf ("Content-Type: text/html\n");
+ charset = get_html_text("000");
+ printf ("Content-Type: text/html; charset=%s\n",
+ *charset == '\0' ? "iso-8859-1" : charset);
#ifdef NO_CACHE
printf ("Cache-Control: no-cache\n");
printf ("Cache-Control: no-store\n");
Index: ChangeLog
===================================================================
RCS file: /cvsroot/qmailadmin/qmailadmin/ChangeLog,v
retrieving revision 1.15.2.54
retrieving revision 1.15.2.55
diff -u -d -r1.15.2.54 -r1.15.2.55
--- ChangeLog 12 Jan 2005 07:15:43 -0000 1.15.2.54
+++ ChangeLog 12 Jan 2005 15:14:27 -0000 1.15.2.55
@@ -22,6 +22,7 @@
one didn't already exist.
- INSTALL: Add note about running `libtoolize --force` on x86_64.
- Update config.guess and config.sub scripts.
+ - Include charset in HTTP Content-Type header. [1098891]
1.2.6 - released 24-Dec-04
|