Skip to content
Snippets Groups Projects
Commit fd4bcd9f authored by Wouter D'Haeseleer's avatar Wouter D'Haeseleer
Browse files

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
No related branches found
No related tags found
1 merge request!2484Fixing request.fullpath URL encoding
Loading
Loading
@@ -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)
 
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment