scan_urlencoded should convert '+' to ' '
This commit is contained in:
parent
12e2ed69b6
commit
e4832a2d23
1
CHANGES
1
CHANGES
@ -7,6 +7,7 @@
|
||||
add FMT_LONG to fmt.h (FMT_ULONG plus 1 for sign)
|
||||
fmt_strn did not work for out==NULL
|
||||
fix inconsistencies in man pages
|
||||
make scan_urlencode do the '+' -> ' ' transformation
|
||||
|
||||
0.12:
|
||||
add textcode api for uuencode/uudecode, base64, quoted printable,
|
||||
|
@ -21,9 +21,10 @@ unsigned int scan_urlencoded(const char *src,char *dest,unsigned int *destlen) {
|
||||
if (j<0) break;
|
||||
dest[written]|=j;
|
||||
i+=2;
|
||||
} else {
|
||||
} if (s[i]=='+')
|
||||
dest[written]=' ';
|
||||
else
|
||||
dest[written]=s[i];
|
||||
}
|
||||
++written;
|
||||
}
|
||||
*destlen=written;
|
||||
|
Loading…
x
Reference in New Issue
Block a user