From 6fb0ddeb50908ebb4b9ad23d53540e9a09d5f06d Mon Sep 17 00:00:00 2001 From: Stefan Ritt Date: Sun, 12 Jan 2003 11:36:00 +0000 Subject: [PATCH] Fixed problem with attachment names containg '+' also in find result page SVN revision: 332 --- elogd.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/elogd.c b/elogd.c index 4e122fe7..b9b80465 100755 --- a/elogd.c +++ b/elogd.c @@ -6,6 +6,9 @@ Contents: Web server program for Electronic Logbook ELOG $Log$ + Revision 2.131 2003/01/12 11:36:00 midas + Fixed problem with attachment names containg '+' also in find result page + Revision 2.130 2003/01/11 19:25:59 midas Removed bugfix for old Konqueror wich is not necessary from Konqueror 3.0.4 on @@ -6899,6 +6902,7 @@ FILE *f; strcpy(str, attachment[index]); str[13] = 0; sprintf(ref, "../%s/%s/%s", lbs->name_enc, str, attachment[index]+14); + url_encode(ref, sizeof(ref)); /* for file names with special characters like "+" */ for (i=0 ; i<(int)strlen(attachment[index]) ; i++) str[i] = toupper(attachment[index][i]);