From: Derick Rethans Date: Fri, 24 Feb 2006 16:04:55 +0000 (+0000) Subject: - Fixed issue with iconv_mime_decode where the "encoding" would only allow X-Git-Tag: RELEASE_1_2~90 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=16920d54c7dff05227b9a98fbdc86ef25e4af9b4;p=php - Fixed issue with iconv_mime_decode where the "encoding" would only allow upper case specifiers. #- See RFC 2047, section 2. --- 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;