From 16920d54c7dff05227b9a98fbdc86ef25e4af9b4 Mon Sep 17 00:00:00 2001 From: Derick Rethans Date: Fri, 24 Feb 2006 16:04:55 +0000 Subject: [PATCH] - Fixed issue with iconv_mime_decode where the "encoding" would only allow upper case specifiers. #- See RFC 2047, section 2. --- ext/iconv/iconv.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ext/iconv/iconv.c b/ext/iconv/iconv.c index 34c78f5e0c..ce3464624d 100644 --- a/ext/iconv/iconv.c +++ b/ext/iconv/iconv.c @@ -1398,11 +1398,13 @@ static php_iconv_err_t _php_iconv_mime_decode(smart_str *pretval, const char *st case 3: /* expecting a encoding scheme specifier */ switch (*p1) { + case 'b': case 'B': enc_scheme = PHP_ICONV_ENC_SCHEME_BASE64; scan_stat = 4; break; + case 'q': case 'Q': enc_scheme = PHP_ICONV_ENC_SCHEME_QPRINT; scan_stat = 4; -- 2.50.1