text: ~
security: ~
fixes:
+ - Fixed support for implied SSH urls in web.otherUrls (issue-311)
- Fix potential NPE on removing uncached repository from cache
- Ignore the default contents of .git/description file
changes:
- Klaus Nuber
- Florian Zschocke
- Bret Ikehara
+ - Chad Horohoe
+ - Domingo Oropeza
}
#
if (!urlPermissionsMap.containsKey(repoUrl.url)) {\r
String note;\r
if (repoUrl.isExternal()) {\r
- String protocol = repoUrl.url.substring(0, repoUrl.url.indexOf("://"));\r
+ String protocol;\r
+ int protocolIndex = repoUrl.url.indexOf("://");\r
+ if (protocolIndex > -1) {\r
+ // explicit protocol specified\r
+ protocol = repoUrl.url.substring(0, protocolIndex);\r
+ } else {\r
+ // implicit SSH url\r
+ protocol = "ssh";\r
+ }\r
note = MessageFormat.format(getString("gb.externalPermissions"), protocol); \r
} else {\r
note = null; \r