diff --git a/CHANGELOG.md b/CHANGELOG.md index d9b254329..50773155d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,11 +6,13 @@ **Merged pull requests:** - Release 2.4.4 🦩 ([belomaxorka](https://github.com/belomaxorka)) +- Supports PHP 8.2 / PHP 8.3 ([belomaxorka](https://github.com/belomaxorka)) - CWE-502 Fixed: Deserialization of untrusted data ([belomaxorka](https://github.com/belomaxorka)) - Refactored cache drivers 🗃 [\#1553](https://github.com/torrentpier/torrentpier/pull/1553) ([belomaxorka](https://github.com/belomaxorka)) - Create tech stack docs (techstack.yml and techstack.md) [\#1521](https://github.com/torrentpier/torrentpier/pull/1521), [\#1522](https://github.com/torrentpier/torrentpier/pull/1522) ([belomaxorka](https://github.com/belomaxorka)) - Added MonsterID avatars support 🎇 [\#1546](https://github.com/torrentpier/torrentpier/pull/1546) ([belomaxorka](https://github.com/belomaxorka)) - Added ability to reset ratio [\#1545](https://github.com/torrentpier/torrentpier/pull/1545) ([belomaxorka](https://github.com/belomaxorka)) +- Fixed: function `utf8_encode()` is deprecated [\#1556](https://github.com/torrentpier/torrentpier/pull/1556) ([belomaxorka](https://github.com/belomaxorka)) - Fixed broken "Disable Board" function [\#1529](https://github.com/torrentpier/torrentpier/pull/1529) ([belomaxorka](https://github.com/belomaxorka)) - Fixed seed bonus accrual [\#1518](https://github.com/torrentpier/torrentpier/pull/1518) ([belomaxorka](https://github.com/belomaxorka)) - [BETA] Added emojis support 😄😁 [\#1514](https://github.com/torrentpier/torrentpier/pull/1514) ([belomaxorka](https://github.com/belomaxorka)) diff --git a/src/Updater.php b/src/Updater.php index 636f6c2da..c31623113 100644 --- a/src/Updater.php +++ b/src/Updater.php @@ -62,7 +62,7 @@ class Updater $response = file_get_contents(UPDATER_URL, context: $context); if ($response !== false) { - $this->jsonResponse = json_decode(utf8_encode($response), true); + $this->jsonResponse = json_decode(mb_convert_encoding($response, 'UTF-8', mb_detect_encoding($response)), true); } // Empty JSON result