- Affected version
- 2.2.6 Patch 2
On fetching
A ValueError is thrown and the unfurl is not marked as failed.
The URL returns the following headers;
https://www.toei-anim.co.jp:443/tv/digimon_t/chara/dukemon.html
A ValueError is thrown and the unfurl is not marked as failed.
Code:
ValueError: mb_convert_encoding(): Argument #3 ($from_encoding) contains invalid encoding "none" src/XF/Http/Metadata.php:200
Generated by: Unknown account Sep 9, 2021 at 10:47 PM
Stack trace
#0 src/XF/Http/Metadata.php(200): mb_convert_encoding('<html>
<head>
<...', 'utf-8', 'none')
#1 src/XF/Http/Metadata.php(35): XF\Http\Metadata->convertBodyCharset()
#2 src/XF/Http/MetadataFetcher.php(129): XF\Http\Metadata->__construct(Object(XF\Pub\App), '<html>
<head>
<...', Array, 'http://www.toei...')
#3 src/XF/Service/Unfurl/Fetcher.php(22): XF\Http\MetadataFetcher->fetch('http://www.toei...', NULL)
#4 unfurl.php(57): XF\Service\Unfurl\Fetcher->fetch()
#5 {main}
The URL returns the following headers;
Code:
HTTP/1.1 200 OK
Date: Thu, 09 Sep 2021 15:57:05 GMT
Content-Type: text/html; charset=none
Content-Length: 4982
Connection: keep-alive
Server: Apache
Last-Modified: Mon, 18 Nov 2013 07:27:01 GMT
ETag: "1376-4eb6e794f1b40"
Accept-Ranges: bytes
Content-Type: text/html; charset=none
makes php 8 sad.