Skip to content

Commit

Permalink
Merge branch 'release/1.7.41.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
rhukster committed May 10, 2023
2 parents e4a30f5 + b34f70f commit d96b023
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# v1.7.41.1
## 05/10/2023

1. [](#bugfix)
* Fixed certain UTF-8 characters breaking `Truncator` class [#3716](https://github.com/getgrav/grav/issues/3716)

# v1.7.41
## 05/09/2023

Expand Down
2 changes: 1 addition & 1 deletion system/defines.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

// Some standard defines
define('GRAV', true);
define('GRAV_VERSION', '1.7.41');
define('GRAV_VERSION', '1.7.41.1');
define('GRAV_SCHEMA', '1.7.0_2020-11-20_1');
define('GRAV_TESTING', false);

Expand Down
2 changes: 1 addition & 1 deletion system/src/Grav/Common/Helpers/Truncator.php
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ public static function htmlToDomDocument($html)
}

// Transform multibyte entities which otherwise display incorrectly.
$html = htmlspecialchars_decode(iconv('UTF-8', 'ISO-8859-1', htmlentities($html, ENT_COMPAT, 'UTF-8')), ENT_QUOTES);
$html = mb_encode_numericentity($html, [0x80, 0x10FFFF, 0, ~0], 'UTF-8');

// Internal errors enabled as HTML5 not fully supported.
libxml_use_internal_errors(true);
Expand Down

0 comments on commit d96b023

Please sign in to comment.