X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fcore%2Flib%2FDrupal%2FComponent%2FDiff%2FEngine%2FDiffEngine.php;fp=web%2Fcore%2Flib%2FDrupal%2FComponent%2FDiff%2FEngine%2FDiffEngine.php;h=34c01f36593dd456bdd08e342a9e54a9a7a9a174;hp=27b0f325724b09ba31deb109af71a2086c0db250;hb=0bf8d09d2542548982e81a441b1f16e75873a04f;hpb=74df008bdbb3a11eeea356744f39b802369bda3c diff --git a/web/core/lib/Drupal/Component/Diff/Engine/DiffEngine.php b/web/core/lib/Drupal/Component/Diff/Engine/DiffEngine.php index 27b0f3257..34c01f365 100644 --- a/web/core/lib/Drupal/Component/Diff/Engine/DiffEngine.php +++ b/web/core/lib/Drupal/Component/Diff/Engine/DiffEngine.php @@ -2,8 +2,6 @@ namespace Drupal\Component\Diff\Engine; -use Drupal\Component\Utility\Unicode; - /** * Class used internally by Diff to actually compute the diffs. * @@ -134,7 +132,7 @@ class DiffEngine { * Returns the whole line if it's small enough, or the MD5 hash otherwise. */ protected function _line_hash($line) { - if (Unicode::strlen($line) > $this::MAX_XREF_LENGTH) { + if (mb_strlen($line) > $this::MAX_XREF_LENGTH) { return md5($line); } else {