Skip to content

Fix truncated? for Unicode-encoded blobs

As reported in gitlab-org/gitlab-ce#18690, a blob with Unicode characters would cause truncated? to erroneously return true because the data attribute is encoded into Unicode beforehand. This leads to a mismatch between bytes and length of string. Requesting the number of bytes from the string fixes this issue.

Merge request reports

Loading