Merge branch 'dm-encode-tree-and-blob-paths' into 'master'

Fix issues with non-UTF8 filenames by always fixing the encoding of tree and blob paths

Closes #34529

See merge request !12636
This commit is contained in:
Rémy Coutable 2017-07-05 09:20:22 +00:00
commit 5cd218d73a
3 changed files with 13 additions and 0 deletions

View File

@ -0,0 +1,5 @@
---
title: Fix issues with non-UTF8 filenames by always fixing the encoding of tree and
blob paths
merge_request:
author:

View File

@ -175,6 +175,10 @@ module Gitlab
encode! @name
end
def path
encode! @path
end
def truncated?
size && (size > loaded_size)
end

View File

@ -80,6 +80,10 @@ module Gitlab
encode! @name
end
def path
encode! @path
end
def dir?
type == :tree
end