Skip to content
Permalink
Browse files

Fix issue with detailed counting of characters in blog (cut() already…

… counts with UTF-8) - fixes BT#12324
  • Loading branch information...
ywarnier committed Apr 4, 2017
1 parent 7b1b31f commit 5ae1998c775509a8ed87de096f08818599ae7446
Showing with 1 addition and 1 deletion.
  1. +1 −1 main/inc/lib/blog.lib.php
@@ -3094,7 +3094,7 @@ private static function getPostExtract($fullText, $length = BLOG_MAX_PREVIEW_CHA
// Cut the string to the BLOG_MAX_PREVIEX_CHARS limit, adding
// whitespaces
$extract = cut($text, $stringLength + $countBlanks);
$extract = cut($text, $length + $countBlanks);
// Return an HTML string for printing
return api_htmlentities($extract);

0 comments on commit 5ae1998

Please sign in to comment.
You can’t perform that action at this time.