mirror of
https://gitea.psi.ch/ELOG/elog.git
synced 2026-09-08 17:13:56 +00:00
Fixed problem with submitting '------' as only text
SVN revision: 160
This commit is contained in:
parent
168bb37d26
commit
71b642f5c6
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.36 2002/07/01 09:32:32 midas
|
||||||
|
Fixed problem with submitting '------' as only text
|
||||||
|
|
||||||
Revision 2.35 2002/07/01 08:29:08 midas
|
Revision 2.35 2002/07/01 08:29:08 midas
|
||||||
Propagage '?mode=xxx' though 'lastxx' commands
|
Propagage '?mode=xxx' though 'lastxx' commands
|
||||||
|
|
||||||
@ -8181,7 +8184,9 @@ int i, n;
|
|||||||
string = strstr(p, boundary) + strlen(boundary);
|
string = strstr(p, boundary) + strlen(boundary);
|
||||||
*strstr(p, boundary) = 0;
|
*strstr(p, boundary) = 0;
|
||||||
ptmp = p + (strlen(p) - 1);
|
ptmp = p + (strlen(p) - 1);
|
||||||
while (*ptmp == '-' || *ptmp == '\n' || *ptmp == '\r')
|
while (*ptmp == '-')
|
||||||
|
*ptmp-- = 0;
|
||||||
|
while (*ptmp == '\n' || *ptmp == '\r')
|
||||||
*ptmp-- = 0;
|
*ptmp-- = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user