mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-21 22:03:49 -07:00
Fixed: function utf8_encode()
is deprecated (#1556)
* Fixed: Function utf8_encode() is deprecated * Update CHANGELOG.md * Update CHANGELOG.md * Updated * Update Updater.php
This commit is contained in:
parent
00f4f8f120
commit
4e853253b6
2 changed files with 3 additions and 1 deletions
|
@ -6,11 +6,13 @@
|
||||||
**Merged pull requests:**
|
**Merged pull requests:**
|
||||||
|
|
||||||
- Release 2.4.4 🦩 ([belomaxorka](https://github.com/belomaxorka))
|
- 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))
|
- 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))
|
- 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))
|
- 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 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))
|
- 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 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))
|
- 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))
|
- [BETA] Added emojis support 😄😁 [\#1514](https://github.com/torrentpier/torrentpier/pull/1514) ([belomaxorka](https://github.com/belomaxorka))
|
||||||
|
|
|
@ -62,7 +62,7 @@ class Updater
|
||||||
$response = file_get_contents(UPDATER_URL, context: $context);
|
$response = file_get_contents(UPDATER_URL, context: $context);
|
||||||
|
|
||||||
if ($response !== false) {
|
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
|
// Empty JSON result
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue