Commit 198fb4ac authored by Krzysztof Domański's avatar Krzysztof Domański Committed by lamp5
Browse files

Issue #3254041 by Krzysztof Domański: Use mb_strlen/substr instead of regular...

Issue #3254041 by Krzysztof Domański: Use mb_strlen/substr instead of regular strlen/substr for UTF8 special chars support
parent bcd28b89
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -461,8 +461,8 @@ class BreadcrumbBuilder implements BreadcrumbBuilderInterface {
  private function prepareTitle($title) {
    if ($length = $this->customBreadcrumbsSettings['trim_title']) {
      // We should catch the case when title is array or object.
      if (is_string($title) && strlen($title) > $length) {
        return substr($title, 0, $length) . '...';
      if (is_string($title) && mb_strlen($title) > $length) {
        return mb_substr($title, 0, $length) . '...';
      }
    }