Fixing request.fullpath URL encoding
Let's assume your path is = "project/tree/master/This%20Is%20valid" In this case gitlab renders a 404. To fix this we should decode the path so that it looks like "project/tree/master/This Is valid"
This commit is contained in:
parent
e6c0673ef1
commit
fd4bcd9f09
|
@ -108,7 +108,7 @@ module ExtractsPath
|
||||||
request.format = :atom
|
request.format = :atom
|
||||||
end
|
end
|
||||||
|
|
||||||
path = request.fullpath.dup
|
path = CGI::unescape(request.fullpath.dup)
|
||||||
|
|
||||||
@ref, @path = extract_ref(path)
|
@ref, @path = extract_ref(path)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue