add + to unsafe characters in fmt_urlencoded
This commit is contained in:
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) {
|
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;
|
register const unsigned char* s=(const unsigned char*) src;
|
||||||
unsigned long written=0,i;
|
unsigned long written=0,i;
|
||||||
for (i=0; i<len; ++i) {
|
for (i=0; i<len; ++i) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user