Browse Source

[Feature] Core: Relax quoted-printable encoding

tags/1.9.0
Vsevolod Stakhov 5 years ago
parent
commit
f3ff58dd3b
1 changed files with 9 additions and 1 deletions
  1. 9
    1
      src/libutil/str_util.c

+ 9
- 1
src/libutil/str_util.c View File

@@ -1931,7 +1931,7 @@ rspamd_decode_qp_buf (const gchar *in, gsize inlen,
gchar *o, *end, *pos, c;
const gchar *p;
guchar ret;
gsize remain, processed;
gssize remain, processed;

p = in;
o = out;
@@ -1967,6 +1967,14 @@ decode:

continue;
}
else {
/* Hack, hack, hack, treat =<garbadge> as =<garbadge> */
if (remain > 0) {
*o++ = *(p - 1);
}

continue;
}

if (remain > 0) {
c = *p++;

Loading…
Cancel
Save