Commit 75dd8e6f authored by Paul Medlock-Walton's avatar Paul Medlock-Walton

allow https template urls

maintain backward compatibility for current urls that expect http:// by default

Change-Id: I9c62004bf6b38e06094ebad30f3cd9b789de6510
parent 9ad31e2b
......@@ -641,10 +641,13 @@ public class TemplateUploadWizard extends Wizard implements NewUrlDialogCallback
* @param onSuccessCommand command to open the project
*/
public static void openProjectFromTemplate(String url, final NewProjectCommand onSuccessCommand) {
if(!url.startsWith("http")) {
url = "http://" + url;
}
if (url.endsWith(".asc")) {
openTemplateProject("http://" + url, onSuccessCommand);
openTemplateProject(url, onSuccessCommand);
} else {
retrieveExternalTemplateData("http://" + url);
retrieveExternalTemplateData(url);
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment