Merge "Encode project name in download commands" into stable-2.16

This commit is contained in:
David Pursehouse 2018-11-26 23:25:31 +00:00 committed by Gerrit Code Review
commit bccd5408af

View File

@ -307,9 +307,9 @@
commands.push({
title,
command: commandObj[title]
.replace('${project}', repo)
.replace('${project}', encodeURI(repo))
.replace('${project-base-name}',
repo.substring(repo.lastIndexOf('/') + 1)),
encodeURI(repo.substring(repo.lastIndexOf('/') + 1))),
});
}
return commands;