mirror of
https://gitea.psi.ch/ELOG/elog.git
synced 2026-09-08 17:13:56 +00:00
Changed strupr() to toupper()
SVN revision: 799
This commit is contained in:
parent
5b9e969a8f
commit
4670532c44
@ -6,6 +6,9 @@
|
|||||||
Contents: Web server program for Electronic Logbook ELOG
|
Contents: Web server program for Electronic Logbook ELOG
|
||||||
|
|
||||||
$Log$
|
$Log$
|
||||||
|
Revision 1.270 2004/02/26 13:41:17 midas
|
||||||
|
Changed strupr() to toupper()
|
||||||
|
|
||||||
Revision 1.269 2004/02/26 13:16:34 midas
|
Revision 1.269 2004/02/26 13:16:34 midas
|
||||||
Show attribute values as HTML if the contain <a> or <img> in listing
|
Show attribute values as HTML if the contain <a> or <img> in listing
|
||||||
|
|
||||||
@ -4270,12 +4273,14 @@ void logf(LOGBOOK * lbs, const char *format, ...)
|
|||||||
int is_html(char *s)
|
int is_html(char *s)
|
||||||
{
|
{
|
||||||
char *str;
|
char *str;
|
||||||
|
int i;
|
||||||
|
|
||||||
str = malloc(strlen(s)+1);
|
str = malloc(strlen(s)+1);
|
||||||
assert(str);
|
assert(str);
|
||||||
|
|
||||||
strcpy(str, s);
|
for (i=0 ; i<(int)strlen(s) ; i++)
|
||||||
strupr(str);
|
str[i] = toupper(s[i]);
|
||||||
|
str[i] = 0;
|
||||||
|
|
||||||
if (strstr(str, "<A HREF") && strchr(str, '>')) {
|
if (strstr(str, "<A HREF") && strchr(str, '>')) {
|
||||||
free(str);
|
free(str);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user