Commit adb19682 authored by rswindell's avatar rswindell
Browse files

Another difference in RFC2047 'Q' encoding:

  "Upper case should be used"
Compared with RFC0245 Quoted-Printable encoding:
  "Uppercase letters must be used"

<sigh>
Really.. these specs were written by the same (MIME) working-group?
parent 828b1aaf
......@@ -29,7 +29,7 @@ function decode(hvalue)
case 'Q': // "similar to" Quoted-printable
retval.data = match[3]
.replace(/_/g, ' ')
.replace(/=([0-9A-F][0-9A-F])/g, function(str, p1) { return(ascii(parseInt(p1,16))); });
.replace(/=([0-9A-F][0-9A-F])/gi, function(str, p1) { return(ascii(parseInt(p1,16))); });
break;
case 'B': // Base64
retval.data = base64_decode(match[3]);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment