add + to unsafe characters in fmt_urlencoded

master
leitner 22 years ago
parent 7732d63465
commit 93e07c1174

@ -8,7 +8,7 @@ static inline int tohex(char c) {
}
unsigned int fmt_urlencoded(char* dest,const char* src,unsigned int len) {
const char unsafe[]=" %<>\"#{}|\\^~[]`;/?:@=&";
const char unsafe[]=" +%<>\"#{}|\\^~[]`;/?:@=&";
register const unsigned char* s=(const unsigned char*) src;
unsigned long written=0,i;
for (i=0; i<len; ++i) {

Loading…
Cancel
Save