Commit bcbac517 bcbac517f78ef9a69b7a9af04a56aca81f7d577c by Sergey Poznyakoff

(qp_decode): Bugfix. According to RFC underscore represents space.

1 parent a7525c2a
...@@ -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;
......