Demo Discussion
Forum Config Examples Contributions Vulnerabilities
  Discussion forum about ELOG  Not logged in ELOG logo
icon4.gif   erroneus encoding, posted by Emiliano Gabrielli on Tue Feb 8 13:00:40 2005 
    icon14.gif   Re: erroneus encoding, posted by Emiliano Gabrielli on Tue Feb 8 15:41:55 2005 
    icon2.gif   Re: erroneus encoding, posted by Stefan Ritt on Sat Feb 12 17:31:46 2005 
Message ID: 924     Entry time: Tue Feb 8 15:41:55 2005     In reply to: 918
Icon: Agree  Author: Emiliano Gabrielli  Author Email: AlberT@SuperAlberT.it 
Category: Bug fix  OS: Linux  ELOG Version: 2.5.6 
Subject: Re: erroneus encoding 
the following patch corrects the problem, plz apply :


--- elogd.c     2005-02-03 16:46:10.000000000 +0100
+++ elogd_albert.c      2005-02-08 15:40:36.000000000 +0100
@@ -6178,7 +6178,7 @@
    if (getcfg("global", "charset", str, sizeof(str)))
       rsprintf("Content-Type: text/html;charset=%s\r\n", str);
    else
-      rsprintf("Content-Type: text/html;charset=%S\r\n", DEFAULT_HTTP_CHARSET);
+      rsprintf("Content-Type: text/html;charset=%s\r\n", DEFAULT_HTTP_CHARSET);

    if (use_keepalive) {
       rsprintf("Connection: Keep-Alive\r\n");
@@ -11267,7 +11267,7 @@
    rsprintf("Server: ELOG HTTP %s\r\n", VERSION);
    rsprintf("Accept-Ranges: bytes\r\n");
    rsprintf("Connection: close\r\n");
-   rsprintf("Content-Type: text/plain;charset=%S\r\n", DEFAULT_HTTP_CHARSET);
+   rsprintf("Content-Type: text/plain;charset=%s\r\n", DEFAULT_HTTP_CHARSET);
    rsprintf("Pragma: no-cache\r\n");
    rsprintf("Expires: Fri, 01 Jan 1983 00:00:00 GMT\r\n\r\n");
ELOG V3.1.5-fe60aaf