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:
Wouter D'Haeseleer 2013-01-04 15:05:00 +01:00
parent e6c0673ef1
commit fd4bcd9f09

View file

@ -108,7 +108,7 @@ module ExtractsPath
request.format = :atom
end
path = request.fullpath.dup
path = CGI::unescape(request.fullpath.dup)
@ref, @path = extract_ref(path)