mirror of
https://gitea.psi.ch/ELOG/elog.git
synced 2026-09-08 17:13:56 +00:00
Fixed problem with attachment names containg '+' also in find result page
SVN revision: 332
This commit is contained in:
parent
43ff72b115
commit
6fb0ddeb50
4
elogd.c
4
elogd.c
@ -6,6 +6,9 @@
|
|||||||
Contents: Web server program for Electronic Logbook ELOG
|
Contents: Web server program for Electronic Logbook ELOG
|
||||||
|
|
||||||
$Log$
|
$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
|
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
|
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]);
|
strcpy(str, attachment[index]);
|
||||||
str[13] = 0;
|
str[13] = 0;
|
||||||
sprintf(ref, "../%s/%s/%s", lbs->name_enc, str, attachment[index]+14);
|
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++)
|
for (i=0 ; i<(int)strlen(attachment[index]) ; i++)
|
||||||
str[i] = toupper(attachment[index][i]);
|
str[i] = toupper(attachment[index][i]);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user