mirror of
https://gitea.psi.ch/ELOG/elog.git
synced 2026-09-08 17:13:56 +00:00
Fixed bug with 10 attachments
SVN revision: 284
This commit is contained in:
parent
55f0ca2598
commit
ad238f7670
7
elogd.c
7
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.97 2002/11/19 08:32:29 midas
|
||||||
|
Fixed bug with 10 attachments
|
||||||
|
|
||||||
Revision 2.96 2002/11/06 13:39:29 midas
|
Revision 2.96 2002/11/06 13:39:29 midas
|
||||||
Added charset= option
|
Added charset= option
|
||||||
|
|
||||||
@ -392,7 +395,7 @@
|
|||||||
\********************************************************************/
|
\********************************************************************/
|
||||||
|
|
||||||
/* Version of ELOG */
|
/* Version of ELOG */
|
||||||
#define VERSION "2.2.2"
|
#define VERSION "2.2.3"
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
@ -10257,7 +10260,7 @@ int i, n;
|
|||||||
|
|
||||||
if (strncmp(item, "attfile", 7) == 0)
|
if (strncmp(item, "attfile", 7) == 0)
|
||||||
{
|
{
|
||||||
n = item[7] - '1';
|
n = atoi(item+7)-1;
|
||||||
|
|
||||||
/* evaluate file attachment */
|
/* evaluate file attachment */
|
||||||
if (strstr(string, "filename="))
|
if (strstr(string, "filename="))
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user