mirror of
https://gitea.psi.ch/ELOG/elog.git
synced 2026-09-14 20:33:48 +00:00
Fixed endless loop in strip_html
SVN revision: 833
This commit is contained in:
parent
8c3936eefa
commit
7cb153c332
@ -6,6 +6,9 @@
|
|||||||
Contents: Web server program for Electronic Logbook ELOG
|
Contents: Web server program for Electronic Logbook ELOG
|
||||||
|
|
||||||
$Log$
|
$Log$
|
||||||
|
Revision 1.298 2004/03/16 15:39:53 midas
|
||||||
|
Fixed endless loop in strip_html
|
||||||
|
|
||||||
Revision 1.297 2004/03/16 08:48:30 midas
|
Revision 1.297 2004/03/16 08:48:30 midas
|
||||||
Fixed format compiler warnings
|
Fixed format compiler warnings
|
||||||
|
|
||||||
@ -4445,6 +4448,8 @@ void strip_html(char *s)
|
|||||||
while ((p = strchr(s, '<')) != NULL) {
|
while ((p = strchr(s, '<')) != NULL) {
|
||||||
if (strchr(p, '>'))
|
if (strchr(p, '>'))
|
||||||
strcpy(p, strchr(p, '>') + 1);
|
strcpy(p, strchr(p, '>') + 1);
|
||||||
|
else
|
||||||
|
*p = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user