Catch `ValueError` while convert encoding
authorjoshuaruesweg <ruesweg@woltlab.com>
Tue, 15 Mar 2022 18:00:53 +0000 (19:00 +0100)
committerjoshuaruesweg <ruesweg@woltlab.com>
Wed, 16 Mar 2022 07:19:24 +0000 (08:19 +0100)
commit457195447eaa61da012df02ca677af0f0a6d524b
treea4fbe044ddb5bc5dad1eea1d728ec76c9c54102a
parent9285255492ac531982b17dade15e4b46d69bf4df
Catch `ValueError` while convert encoding

Since PHP 8.0 the function `mb_convert_encoding` throws an `ValueError` if the given charset is unknown. Prior to this, a PHP notice is thrown.

Fixes #4697
wcfsetup/install/files/lib/system/message/unfurl/UnfurlResponse.class.php