35 lines
1.0 KiB
Plaintext
35 lines
1.0 KiB
Plaintext
$NetBSD: patch-ac,v 1.1 2008/02/27 16:14:25 apb Exp $
|
|
|
|
--- src/webadmin.c.orig 2006-03-10 21:36:33.000000000 +0200
|
|
+++ src/webadmin.c
|
|
@@ -311,12 +311,12 @@ void * adminchild(void * data) {
|
|
sb = strchr(buf, ':');
|
|
if(!sb)continue;
|
|
++sb;
|
|
- while(isspace(*sb))sb++;
|
|
+ while(isspace((unsigned char)*sb))sb++;
|
|
if(!*sb || strncasecmp(sb, "basic", 5)){
|
|
continue;
|
|
}
|
|
sb+=5;
|
|
- while(isspace(*sb))sb++;
|
|
+ while(isspace((unsigned char)*sb))sb++;
|
|
i = de64((unsigned char *)sb, (unsigned char *)username, 255);
|
|
if(i<=0)continue;
|
|
username[i] = 0;
|
|
@@ -332,12 +332,12 @@ void * adminchild(void * data) {
|
|
}
|
|
else if(i > 15 && (!strncasecmp(buf, "content-length:", 15))){
|
|
sb = buf + 15;
|
|
- while(isspace(*sb))sb++;
|
|
+ while(isspace((unsigned char)*sb))sb++;
|
|
contentlen = atoi(sb);
|
|
}
|
|
else if(i > 13 && (!strncasecmp(buf, "content-type:", 13))){
|
|
sb = buf + 13;
|
|
- while(isspace(*sb))sb++;
|
|
+ while(isspace((unsigned char)*sb))sb++;
|
|
if(!strncasecmp(sb, "x-www-form-urlencoded", 21)) isform = 1;
|
|
}
|
|
}
|