Demo Discussion
Forum Config Examples Contributions Vulnerabilities
  Discussion forum about ELOG  Not logged in ELOG logo
icon5.gif   reply option in elog client not working, posted by Gerald Ebberink on Tue Aug 22 11:31:11 2006 
    icon2.gif   Re: reply option in elog client not working, posted by Gerald Ebberink on Wed Sep 6 12:02:52 2006 
       icon2.gif   Re: reply option in elog client not working, posted by Gerald Ebberink on Thu Sep 7 08:01:37 2006 elog.c.diff
          icon2.gif   Re: reply option in elog client not working, posted by Gerald Ebberink on Thu Sep 7 17:17:17 2006 
Message ID: 1927     Entry time: Thu Sep 7 08:01:37 2006     In reply to: 1926     Reply to this: 1928
Icon: Reply  Author: Gerald Ebberink  Author Email: g.h.p.ebberink@nclr.nl 
Category: Bug report  OS: Linux  ELOG Version: 2.6.2-1706 
Subject: Re: reply option in elog client not working 
I have made patch witch solves the problem partialy.

If there are not no attachments this patch works.... (But since I have attachments I'll have to dig in deeper in the code.

Attached you will find the diff.
Attachment 1: elog.c.diff  697 Bytes  | Hide | Hide all
Index: src/elog.c
===================================================================
--- src/elog.c	(revision 1714)
+++ src/elog.c	(working copy)
@@ -351,8 +351,11 @@
    strcpy(request, "GET /");
    if (subdir[0])
       sprintf(request + strlen(request), "%s/%d?cmd=download", subdir, message_id);
-   if (experiment[0])
-      sprintf(request + strlen(request), "%s/%d?cmd=download", experiment, message_id);
+   if (experiment[0]) {
+      strcpy(str,experiment);
+      url_encode(str, sizeof(str));
+      sprintf(request + strlen(request), "%s/%d?cmd=download", str, message_id);
+	}
    strcat(request, " HTTP/1.0\r\n");
 
    sprintf(request + strlen(request), "User-Agent: ELOG\r\n");
ELOG V3.1.5-fe60aaf