Merge "Encode project name in download commands"

This commit is contained in:
David Pursehouse
2018-11-15 02:49:09 +00:00
committed by Gerrit Code Review

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;