diff options
author | Wouter D'Haeseleer <wouter.dhaeseleer@vasco.com> | 2013-01-04 15:05:00 +0100 |
---|---|---|
committer | Wouter D'Haeseleer <wouter.dhaeseleer@vasco.com> | 2013-01-04 15:05:00 +0100 |
commit | fd4bcd9f09305c057e91a4f791c74d00da9ac143 (patch) | |
tree | 5d13685ba2e07182250d00a6caf597ea40cc18f8 | |
parent | e6c0673ef1108a93928c4d88ba273e12616b836b (diff) | |
download | gitlab-ce-fd4bcd9f09305c057e91a4f791c74d00da9ac143.tar.gz |
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"
-rw-r--r-- | lib/extracts_path.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/extracts_path.rb b/lib/extracts_path.rb index 0b7a0d47caf..d1e569ce3e5 100644 --- a/lib/extracts_path.rb +++ b/lib/extracts_path.rb @@ -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) |