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

This commit is contained in:
David Pursehouse 2019-01-15 23:40:00 +00:00 committed by Gerrit Code Review
commit d65609a7fa

View File

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