diff options
author | Christoph M. Becker <cmbecker69@gmx.de> | 2018-11-14 14:58:45 +0100 |
---|---|---|
committer | Christoph M. Becker <cmbecker69@gmx.de> | 2018-11-14 14:59:30 +0100 |
commit | 9a2bd2f4530412f04dbb86becf9783eb5335be7a (patch) | |
tree | 312617701fd017bcb1b6f6bcfd38b2471d154508 /ext/iconv/iconv.c | |
parent | 8a11c9ee7696bcf7d57014032333eb5eb5f42fab (diff) | |
parent | 211c6189f6921c17ec55a3b422ab5fa4bdd5e88f (diff) | |
download | php-git-9a2bd2f4530412f04dbb86becf9783eb5335be7a.tar.gz |
Merge branch 'PHP-7.2' into PHP-7.3
* PHP-7.2:
Fix #77147: Fix for 60494 ignores ICONV_MIME_DECODE_CONTINUE_ON_ERROR
Diffstat (limited to 'ext/iconv/iconv.c')
-rw-r--r-- | ext/iconv/iconv.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/ext/iconv/iconv.c b/ext/iconv/iconv.c index bd21ede5ac..d80bac77f3 100644 --- a/ext/iconv/iconv.c +++ b/ext/iconv/iconv.c @@ -1536,7 +1536,11 @@ static php_iconv_err_t _php_iconv_mime_decode(smart_str *pretval, const char *st default: /* first letter of a non-encoded word */ err = _php_iconv_appendc(pretval, *p1, cd_pl); if (err != PHP_ICONV_ERR_SUCCESS) { - goto out; + if (mode & PHP_ICONV_MIME_DECODE_CONTINUE_ON_ERROR) { + err = PHP_ICONV_ERR_SUCCESS; + } else { + goto out; + } } encoded_word = NULL; if ((mode & PHP_ICONV_MIME_DECODE_STRICT)) { |