Commit fd4bcd9f authored by Wouter D'Haeseleer's avatar Wouter D'Haeseleer

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"
parent e6c0673e
...@@ -108,7 +108,7 @@ module ExtractsPath ...@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment