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
|
||||
|
||||
$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
|
||||
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)
|
||||
{
|
||||
char *str;
|
||||
int i;
|
||||
|
||||
str = malloc(strlen(s)+1);
|
||||
assert(str);
|
||||
|
||||
strcpy(str, s);
|
||||
strupr(str);
|
||||
for (i=0 ; i<(int)strlen(s) ; i++)
|
||||
str[i] = toupper(s[i]);
|
||||
str[i] = 0;
|
||||
|
||||
if (strstr(str, "<A HREF") && strchr(str, '>')) {
|
||||
free(str);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user