summaryrefslogtreecommitdiff
path: root/lib/extracts_path.rb
diff options
context:
space:
mode:
authorElliot <ewiltshire@perforce.com>2016-08-11 13:15:46 +0200
committerRémy Coutable <remy@rymai.me>2016-08-11 13:21:59 +0200
commit68cea38e94886e69099a3faa0d1e2fbde2e71899 (patch)
tree417de4d96338cc4eff64607376992326dfabc64e /lib/extracts_path.rb
parent3a46eac1ef903c027c244d31369329f45c636914 (diff)
downloadgitlab-ce-68cea38e94886e69099a3faa0d1e2fbde2e71899.tar.gz
Fix front-end for branches that happen to contain urlencoding escape characters (e.g. %)10772-fix-urlencoded-branchname
Signed-off-by: Rémy Coutable <remy@rymai.me>
Diffstat (limited to 'lib/extracts_path.rb')
-rw-r--r--lib/extracts_path.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/extracts_path.rb b/lib/extracts_path.rb
index 51e46da82cc..84688f6646e 100644
--- a/lib/extracts_path.rb
+++ b/lib/extracts_path.rb
@@ -94,7 +94,7 @@ module ExtractsPath
@options = params.select {|key, value| allowed_options.include?(key) && !value.blank? }
@options = HashWithIndifferentAccess.new(@options)
- @id = Addressable::URI.unescape(get_id)
+ @id = Addressable::URI.normalize_component(get_id)
@ref, @path = extract_ref(@id)
@repo = @project.repository
if @options[:extended_sha1].blank?