From 5abd29a59e4117960574ad2bd615c95f51db47a7 Mon Sep 17 00:00:00 2001 From: Stefan Ritt Date: Sat, 11 Jan 2003 11:26:40 +0000 Subject: [PATCH] Fixed problem with attachment names containing a '+' SVN revision: 330 --- elogd.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/elogd.c b/elogd.c index 9d8177cd..57f94dec 100755 --- a/elogd.c +++ b/elogd.c @@ -6,6 +6,9 @@ Contents: Web server program for Electronic Logbook ELOG $Log$ + Revision 2.129 2003/01/11 11:26:40 midas + Fixed problem with attachment names containing a '+' + Revision 2.128 2003/01/09 09:07:13 midas Fixed bug with missing thread head @@ -932,7 +935,7 @@ char *pd, *p, str[256]; p = ps; while (*p && (int)pd < (int)str + 250) { - if (strchr(" %&=#?", *p)) + if (strchr(" %&=#?+", *p)) { sprintf(pd, "%%%02X", *p); pd += 3; @@ -9863,6 +9866,7 @@ BOOL first; strcpy(str, attachment[index]); str[13] = 0; sprintf(ref, "%s/%s", str, attachment[index]+14); + url_encode(ref, sizeof(ref)); /* for file names with special characters like "+" */ rsprintf("\n", gt("Frame color"));