(qp_decode): Bugfix. According to RFC underscore represents space.
Showing
1 changed file
with
6 additions
and
0 deletions
... | @@ -472,6 +472,12 @@ qp_decode (const char *iptr, size_t isize, char *optr, size_t osize, | ... | @@ -472,6 +472,12 @@ qp_decode (const char *iptr, size_t isize, char *optr, size_t osize, |
472 | consumed += 2; | 472 | consumed += 2; |
473 | } | 473 | } |
474 | } | 474 | } |
475 | else if (c == '_') | ||
476 | { | ||
477 | *optr++ = ' '; | ||
478 | (*nbytes)++; | ||
479 | consumed++; | ||
480 | } | ||
475 | else | 481 | else |
476 | { | 482 | { |
477 | *optr++ = c; | 483 | *optr++ = c; | ... | ... |
-
Please register or sign in to post a comment