Browse Source

scan_urlencoded should convert '+' to ' '

master
Felix von Leitner 20 years ago
parent
commit
43e265cb64
  1. 1
      CHANGES
  2. 5
      textcode/scan_urlencoded.c

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,

5
textcode/scan_urlencoded.c

@ -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…
Cancel
Save